]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Lift any characters restriction on searched strings
authorPetr Baudis <redacted>
Sat, 25 Aug 2007 22:18:47 +0000 (00:18 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:12 +0000 (00:07 -0400)
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 <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 74edff9a9686f21f2f83eb584fceb07be085ee5062807e1ce96a1b36d7b35617..0f26ede27e4ac094bd20002c74c67528b143c20161fcd278a09f11d19373dcf5 100755 (executable)
@@ -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");
        }
This page took 0.237166 seconds and 4 git commands to generate.