From: Charles McGarvey Date: Wed, 5 Jun 2013 04:44:28 +0000 (-0600) Subject: gitweb: fix problem causing erroneous project list X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/b898bb9a0cf6c421680fba4ee743ea387d09e06ebb3f944f53aeeb451785d9e7?hp=b898bb9a0cf6c421680fba4ee743ea387d09e06ebb3f944f53aeeb451785d9e7 gitweb: fix problem causing erroneous project list The bug is manifest when running gitweb in a persistent process (e.g. FastCGI, PSGI), and it's easy to reproduce. If a gitweb request includes the searchtext parameter (i.e. s), subsequent requests using the project_list action--which is the default action--and without a searchtext parameter will be filtered by the searchtext value of the first request. This is because the value of the $search_regexp global (the value of which is based on the searchtext parameter) is currently being persisted between requests. Instead, clear $search_regexp before dispatching each request. Signed-off-by: Charles McGarvey Signed-off-by: Junio C Hamano ---