From: Bill Erickson Date: Thu, 24 May 2012 14:30:09 +0000 (-0400) Subject: tpac : uri escape added content key X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f30c649e795496000b49cde1b9b32900ee2606b6;p=evergreen%2Fpines.git 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 --- 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; } }