From f30c649e795496000b49cde1b9b32900ee2606b6 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 24 May 2012 10:30:09 -0400 Subject: [PATCH] tpac : uri escape added content key The added content key may have spaces, etc. URI escape the key to prevent Net::HTTP from croaking in the URL. Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- 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 0a3935b92f..c7e9b4d29e 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm @@ -440,7 +440,7 @@ sub added_content_stage1 { } my $http_type = ($type eq $sel_type) ? 'GET' : 'HEAD'; - $req->write_request($http_type => "/opac/extras/ac/$type/html/$key"); + $req->write_request($http_type => "/opac/extras/ac/$type/html/" . uri_escape($key)); $ctx->{added_content}->{$type}->{request} = $req; } } -- 2.11.0