From 9e022f3b04ca5edc3922b1d31624a21b85e2ba04 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 5 Nov 2018 07:31:48 -0600 Subject: [PATCH] Add redirect for empty 'v' param --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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