Fix an apparent bug in a case where OpenILS::WWW::Proxy means to send a
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 Oct 2010 21:48:41 +0000 (21:48 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 Oct 2010 21:48:41 +0000 (21:48 +0000)
redirect, and also avoid the issue altogether in the new holds pull list
printing interface just added earlier today.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18130 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/WWW/Proxy.pm
Open-ILS/xul/staff_client/server/patron/holds.js

index 1fd0994..6c5f3da 100644 (file)
@@ -80,7 +80,7 @@ sub handler {
         my $base = $cgi->url(-base=>1);
                $base =~ s/^http:/https:/o;
                print "Location: $base".$apache->unparsed_uri."\n\n";
-               return Apache2::Const::OK;
+               return Apache2::Const::REDIRECT;
        }
 
        if (!$auth_ses) {
index 678d87e..b468fdc 100644 (file)
@@ -351,7 +351,7 @@ patron.holds.prototype = {
                                 });
 
                                 var loc = urls.XUL_BROWSER + "?url=" + window.escape(
-                                    xulG.url_prefix("/opac/extras/circ/alt_pull_list.html")
+                                    xulG.url_prefix("/opac/extras/circ/alt_pull_list.html").replace("http:","https:")
                                 );
                                 xulG.new_tab(
                                     loc, {