mirror of
https://github.com/iv-org/invidious.git
synced 2025-03-13 01:16:41 -04:00
fix: add missing check for c.youtube.com host
This commit is contained in:
parent
adcdb8cb92
commit
a338d5df88
@ -21,7 +21,7 @@ module Invidious::Routes::VideoPlayback
|
||||
end
|
||||
|
||||
# Sanity check, to avoid being used as an open proxy
|
||||
if !host.matches?(/[\w-]+.googlevideo.com/)
|
||||
if !host.matches?(/[\w-]+.googlevideo.com/) && !host.matches?(/[\w-]+.c.youtube.com/)
|
||||
return error_template(400, "Invalid \"host\" parameter.")
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user