mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Properly escape email when creating view
This commit is contained in:
parent
d5c9b7dfe8
commit
9989c8100a
2 changed files with 2 additions and 2 deletions
|
@ -1033,7 +1033,7 @@ post "/login" do |env|
|
|||
view_name = "subscriptions_#{sha256(user.email)[0..7]}"
|
||||
PG_DB.exec("CREATE MATERIALIZED VIEW #{view_name} AS \
|
||||
SELECT * FROM channel_videos WHERE \
|
||||
ucid = ANY ((SELECT subscriptions FROM users WHERE email = '#{user.email}')::text[]) \
|
||||
ucid = ANY ((SELECT subscriptions FROM users WHERE email = E'#{user.email.gsub("'", "\\'")}')::text[]) \
|
||||
ORDER BY published DESC;")
|
||||
|
||||
if Kemal.config.ssl || CONFIG.https_only
|
||||
|
|
|
@ -121,7 +121,7 @@ player.on('error', function(event) {
|
|||
|
||||
var currentTime = player.currentTime();
|
||||
var playbackRate = player.playbackRate();
|
||||
var paused = player.paused()
|
||||
var paused = player.paused();
|
||||
|
||||
player.load();
|
||||
if (currentTime > 0.5) {
|
||||
|
|
Loading…
Reference in a new issue