From: Bill Erickson Date: Fri, 21 Jan 2011 15:20:36 +0000 (-0500) Subject: don't muck w/ media_prefix if it's unset X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ceb34b21f23a1d91e4e4784af569789c3e9b3671;p=evergreen%2Fequinox.git don't muck w/ media_prefix if it's unset --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm index c51700443c..44c6e6b692 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm @@ -122,7 +122,7 @@ sub load_context { $ctx->{theme} . ' : locale = ' . $ctx->{locale}); my $mprefix = $ctx->{media_prefix}; - if($mprefix !~ /^http/ and $mprefix !~ /^\//) { + if($mprefix and $mprefix !~ /^http/ and $mprefix !~ /^\//) { # if a hostname is provided /w no protocol, match the protocol to the current page $ctx->{media_prefix} = ($cgi->https) ? "https://$mprefix" : "http://$mprefix"; }