diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-06-11 13:31:45 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-11 13:31:45 -0700 |
commit | a8624d39689d574c17fb44339e4ffebfb0432413 (patch) | |
tree | c96f30b24ef249a8126ae9835f6b19f9a6e6e2d7 | |
parent | Merge branch 'rr/maint-fetch-tag-doc-asterisks' (diff) | |
parent | gitweb: fix problem causing erroneous project list (diff) | |
download | tgif-a8624d39689d574c17fb44339e4ffebfb0432413.tar.xz |
Merge branch 'cm/gitweb-project-list-persistent-cgi-fix'
"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
-rwxr-xr-x | gitweb/gitweb.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 80950c018d..8d69ada042 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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"); |