From eaf9e895daab98eb122f2570bb409794b3257c99 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 16 Dec 2010 16:26:11 +0100 Subject: Fixed perl warning on /v/search redirect without search query --- ChangeLog | 1 + lib/VNDB/Handler/Misc.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6c7e30a2..c1e85302 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2.16 - ? - VNDBUtil::bb2html(): Fixed bug when the string starts with a VNDBID + - Fixed perl warning on /v/search redirect without search query 2.15 - 2010-12-15 - Removed expand/collapse from history browser and /u+/posts and switched to diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm index b5fe95d6..88e08f68 100644 --- a/lib/VNDB/Handler/Misc.pm +++ b/lib/VNDB/Handler/Misc.pm @@ -22,7 +22,7 @@ YAWF::register( qr{u([1-9]\d*)/tags}, sub { $_[0]->resRedirect("/g/links?u=$_[1]", 'perm') }, qr{(.*[^/]+)/+}, sub { $_[0]->resRedirect("/$_[1]", 'perm') }, qr{([pv])}, sub { $_[0]->resRedirect("/$_[1]/all", 'perm') }, - qr{v/search}, sub { $_[0]->resRedirect("/v/all?q=".uri_escape($_[0]->reqParam('q')), 'perm') }, + qr{v/search}, sub { $_[0]->resRedirect("/v/all?q=".uri_escape($_[0]->reqParam('q')||''), 'perm') }, qr{notes}, sub { $_[0]->resRedirect('/d8', 'perm') }, qr{faq}, sub { $_[0]->resRedirect('/d6', 'perm') }, qr{v([1-9]\d*)/(?:stats|scr)}, -- cgit v1.2.3