diff options
author | Yorhel <git@yorhel.nl> | 2010-12-16 16:26:11 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-12-16 16:26:11 +0100 |
commit | eaf9e895daab98eb122f2570bb409794b3257c99 (patch) | |
tree | 108b81c30631692c9c745171b384a2e22b012e6d | |
parent | 4460fa95e47097ba5b4401e9a7e379f33a00943c (diff) |
Fixed perl warning on /v/search redirect without search query
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/VNDB/Handler/Misc.pm | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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)}, |