]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Lift any characters restriction on searched strings
[Gitweb] / gitweb.perl
index 84293a5d12175cb834304954bc1d17f5ee4e73164c06f530b40c265652c92ea4..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");
        }
@@ -5367,7 +5364,7 @@ sub git_feed {
 
        # log/feed of current (HEAD) branch, log of given branch, history of file/directory
        my $head = $hash || 'HEAD';
-       my @commitlist = parse_commits($head, 150);
+       my @commitlist = parse_commits($head, 150, 0, undef, $file_name);
 
        my %latest_commit;
        my %latest_date;
This page took 0.190039 seconds and 4 git commands to generate.