mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add redirect for empty 'v' param
This commit is contained in:
parent
1dcca85819
commit
9e022f3b04
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ get "/watch" do |env|
|
||||||
next env.redirect url
|
next env.redirect url
|
||||||
end
|
end
|
||||||
|
|
||||||
if env.params.query["v"]?
|
if env.params.query["v"]? && !env.params.query["v"].empty?
|
||||||
id = env.params.query["v"]
|
id = env.params.query["v"]
|
||||||
|
|
||||||
if id.size > 11
|
if id.size > 11
|
||||||
|
|
Loading…
Reference in a new issue