diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-11-05 07:31:48 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-11-05 07:31:48 -0600 |
| commit | 9e022f3b04ca5edc3922b1d31624a21b85e2ba04 (patch) | |
| tree | b0d1945cface80561c81816adabe2dad25500068 | |
| parent | 1dcca858198ac99f3745b573e5ab82cbd14c4f06 (diff) | |
| download | invidious-9e022f3b04ca5edc3922b1d31624a21b85e2ba04.tar.gz invidious-9e022f3b04ca5edc3922b1d31624a21b85e2ba04.tar.bz2 invidious-9e022f3b04ca5edc3922b1d31624a21b85e2ba04.zip | |
Add redirect for empty 'v' param
Diffstat (limited to '')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index ad0fcf95..7eff86c8 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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 |
