From fd1b757233a6db66a82bbc3ff4d2f40291b96832 Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Wed, 30 Mar 2011 12:03:23 +0200 Subject: [PATCH] Bug 4943: Search history cookie size limit Signed-off-by: Julian Maurice Signed-off-by: Chris Cormack --- opac/opac-search.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index c145729d7e..a38d6f9217 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -504,6 +504,7 @@ for (my $i=0;$i<@servers;$i++) { $template->param(ShowOpacRecentSearchLink => 1); } + shift @recentSearches if (@recentSearches > 15); # Pushing the cookie back $newsearchcookie = $cgi->cookie( -name => 'KohaOpacRecentSearches', -- 2.39.5