mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-26 16:52:12 +05:30
Add redirect for empty 'v' param
This commit is contained in:
parent
1dcca85819
commit
9e022f3b04
@ -212,7 +212,7 @@ get "/watch" do |env|
|
||||
next env.redirect url
|
||||
end
|
||||
|
||||
if env.params.query["v"]?
|
||||
if env.params.query["v"]? && !env.params.query["v"].empty?
|
||||
id = env.params.query["v"]
|
||||
|
||||
if id.size > 11
|
||||
|
Loading…
Reference in New Issue
Block a user