Bug 4943: Search history cookie size limit

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Matthias Meusburger 2011-03-30 12:03:23 +02:00 committed by Chris Cormack
parent b6f51fb79e
commit fd1b757233
1 changed files with 1 additions and 0 deletions

View File

@ -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',