Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Lift any characters restriction on searched strings
author
Petr Baudis
<pasky@suse.cz>
Sat, 25 Aug 2007 22:18:47 +0000
(
00:18
+0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 27 Aug 2007 08:38:25 +0000
(
01:38
-0700)
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>
gitweb/gitweb.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
17437d4
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index f282a677aaed805528770a6df594cbd452b484a4..18042843d67d90fe9946dd3206578ed7ca9cf06f 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-471,9
+471,6
@@
sub filter_snapshot_fmts {
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");
}