From 80f2dc571e04996aa773ee5274e706c7281d2675 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 26 Apr 2013 15:43:58 +0200 Subject: [PATCH] Bug 10070: fix saving searches with non-ASCII characters to anonymous search history MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To test 1/ logout 2/ search "bar" (added to the history) 3/ search "féé" => history is empty Apply patch 1/ logout 2/ search "bar" (added to the history) 3/ search "féé" => added to the history Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton --- opac/opac-search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 880317a72b..6349e3cc8c 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -654,7 +654,7 @@ for (my $i=0;$i<@servers;$i++) { $newsearchcookie = $cgi->cookie( -name => 'KohaOpacRecentSearches', # We uri_escape the whole freezed structure so we're sure we won't have any encoding problems - -value =>freeze(\@recentSearches), + -value => uri_escape( freeze(\@recentSearches) ), -expires => '' ); $cookie = [$cookie, $newsearchcookie]; -- 2.39.5