From: Petr Baudis Date: Sat, 25 Aug 2007 22:18:47 +0000 (+0200) Subject: gitweb: Lift any characters restriction on searched strings X-Git-Tag: v1.5.3-rc7~15 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7d479624d47a3deff1245a70521180c57b4ff3c1?ds=inline;hp=-c gitweb: Lift any characters restriction on searched strings Everything is already fully quoted along the way so I believe this to be unnecessary at this point. It would pose trouble for regexp searches. Signed-off-by: Petr Baudis Acked-by: Jakub Narebski Signed-off-by: Junio C Hamano --- 7d479624d47a3deff1245a70521180c57b4ff3c1 diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index f282a677aa..18042843d6 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -471,9 +471,6 @@ sub filter_snapshot_fmts { our $searchtext = $cgi->param('s'); our $search_regexp; if (defined $searchtext) { - if ($searchtype ne 'grep' and $searchtype ne 'pickaxe' and $searchtext =~ m/[^a-zA-Z0-9_\.\/\-\+\:\@ ]/) { - die_error(undef, "Invalid search parameter"); - } if (length($searchtext) < 2) { die_error(undef, "At least two characters are required for search parameter"); }