Skip to content

Commit

Permalink
Merge branch 'cm/gitweb-project-list-persistent-cgi-fix' into maint
Browse files Browse the repository at this point in the history
"gitweb" forgot to clear a global variable $search_regexp upon each
request, mistakenly carrying over the previous search to a new one
when used as a persistent CGI.

* cm/gitweb-project-list-persistent-cgi-fix:
  gitweb: fix problem causing erroneous project list
  • Loading branch information
Junio C Hamano committed Jul 3, 2013
2 parents 4b0d73f + ca7a5dc commit 897175f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ sub evaluate_and_validate_params {
our $search_use_regexp = $input_params{'search_use_regexp'};

our $searchtext = $input_params{'searchtext'};
our $search_regexp;
our $search_regexp = undef;
if (defined $searchtext) {
if (length($searchtext) < 2) {
die_error(403, "At least two characters are required for search parameter");
Expand Down

0 comments on commit 897175f

Please sign in to comment.