]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Lift any characters restriction on searched strings
[Gitweb] / gitweb.perl
index 972339da499be91b809b8aa037fc4c7d6a7a5b07b528c0dccd57f058688cf3f8..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");
        }
@@ -1516,6 +1513,7 @@ sub git_get_projects_list {
 
                File::Find::find({
                        follow_fast => 1, # follow symbolic links
+                       follow_skip => 2, # ignore duplicates
                        dangling_symlinks => 0, # ignore dangling symlinks, silently
                        wanted => sub {
                                # skip project-list toplevel, if we get it.
@@ -5366,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.213239 seconds and 4 git commands to generate.