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>maint
parent
17437d45be
commit
7d479624d4
|
@ -471,9 +471,6 @@ if (defined $searchtype) {
|
||||||
our $searchtext = $cgi->param('s');
|
our $searchtext = $cgi->param('s');
|
||||||
our $search_regexp;
|
our $search_regexp;
|
||||||
if (defined $searchtext) {
|
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) {
|
if (length($searchtext) < 2) {
|
||||||
die_error(undef, "At least two characters are required for search parameter");
|
die_error(undef, "At least two characters are required for search parameter");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue