From 922c9def9f04aa8855f34e14d5fd5f93ee3b1a54 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Mon, 26 Sep 2011 14:40:19 -0400 Subject: [PATCH] LP#845763 remote added content breaks remote added content breaks when using locally served content Signed-off-by: Jason Etheridge Signed-off-by: Dan Scott --- Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm index 87010989b9..0e85a54a34 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm @@ -78,11 +78,12 @@ sub handler { return Apache2::Const::DECLINED if (-e $r->filename); my $cgi = CGI->new; - my $path = $r->path_info; + my @path_parts = split( /\//, $r->unparsed_uri ); + my $type = $path_parts[-3]; + my $format = $path_parts[-2]; + my $key = $path_parts[-1]; my $res; - my( undef, $type, $format, $key ) = split(/\//, $r->path_info); - child_init() unless $handler; return Apache2::Const::NOT_FOUND unless $handler and $type and $format and $key; -- 2.43.2