Skip to content

Commit 7d47962

Browse files
Petr Baudisgitster
authored andcommitted
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 <[email protected]> Acked-by: Jakub Narebski <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 17437d4 commit 7d47962

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

gitweb/gitweb.perl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,6 @@ sub filter_snapshot_fmts {
471471
our $searchtext = $cgi->param('s');
472472
our $search_regexp;
473473
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-
}
477474
if (length($searchtext) < 2) {
478475
die_error(undef, "At least two characters are required for search parameter");
479476
}

0 commit comments

Comments
 (0)