From f203c86de7d96b0d22b8764266dc583517582659 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 30 Oct 2012 13:07:21 -0400 Subject: [PATCH] Use uri_escape_utf8 in EGCatLoader/Record.pm. To avoid this: [Tue Oct 30 12:34:36 2012] [error] [client 134.241.121.11] egweb: Context Loader error: Can't escape \\x{02B9}, try uri_escape_utf8() instead at /usr/local/share/perl/5.14.2/OpenILS/WWW/EGCatLoader/Record.pm line 472 \n, referer: http://catalog.mvlc.org/eg/opa c/results?fi%3Aitem_type=&query= zhenshchiny&qtype=keyword&locg=1 Signed-off-by: Jason Stephenson Signed-off-by: Ben Shum --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm index 4497c33d8d..a4af2c657f 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm @@ -469,7 +469,7 @@ sub added_content_stage1 { $req->host($self->apache->hostname); my $http_type = ($type eq $sel_type) ? 'GET' : 'HEAD'; - $req->write_request($http_type => "/opac/extras/ac/$type/html/" . uri_escape($key)); + $req->write_request($http_type => "/opac/extras/ac/$type/html/" . uri_escape_utf8($key)); $ctx->{added_content}->{$type}->{request} = $req; } } -- 2.43.2