From 35f4c332b2edfffaee68af6f8e1db7adab323599 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 26 Apr 2013 15:43:58 +0200 Subject: [PATCH] [PASSED QA] Bug 10070: revert previous changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Passes tests and QA script. --- 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 2502768..2f5bb10 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -652,7 +652,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]; -- 1.7.9.5