fix: add missing check for c.youtube.com host
All checks were successful
Invidious CI / build (push) Successful in 6m4s
All checks were successful
Invidious CI / build (push) Successful in 6m4s
This commit is contained in:
parent
01ccd55829
commit
a4cb5f094c
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,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…
Add table
Reference in a new issue