From fb5df7de5c53a1a63b5527710231f5e5437f03b0 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@biblibre.com>
Date: Fri, 26 Apr 2013 15:45:28 +0200
Subject: [PATCH] Bug 10070: revert previous changes

We should use escape_uri instead of escape_uri_utf8
---
 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.10.4