From: Petr Baudis Date: Sat, 25 Aug 2007 22:18:47 +0000 (+0200) Subject: gitweb: Lift any characters restriction on searched strings X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/536a46f74ff98232165e4bcb07b51f940be6dde62c7e97c8c3af1f725029c10d 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 --- diff --git a/gitweb.perl b/gitweb.perl index 74edff9..0f26ede 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -472,9 +472,6 @@ if (defined $searchtype) { 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"); }