@matheusbsbs / matheus-bagliano / commits / 7d479624d4
Fork 0

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 <pasky@suse.cz> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Petr Baudis committed Aug 26, 2007 at 00:18 UTC 7d479624d47a3deff1245a70521180c57b4ff3c1
1 file changed -3
gitweb/gitweb.perl
-3
@@ -471,9 +471,6 @@ if (defined $searchtype) {
471 our $searchtext = $cgi->param('s');
472 our $search_regexp;
473 if (defined $searchtext) {
474 - if ($searchtype ne 'grep' and $searchtype ne 'pickaxe' and $searchtext =~ m/[^a-zA-Z0-9_\.\/\-\+\:\@ ]/) {
475 - die_error(undef, "Invalid search parameter");
476 - }
474 if (length($searchtext) < 2) {
475 die_error(undef, "At least two characters are required for search parameter");
476 }