LP#1507013 XUL offline (etc) always uses HTTPS user/berick/lp1507013-xul-offline-https
authorBill Erickson <berickxx@gmail.com>
Thu, 17 Aug 2017 16:12:42 +0000 (12:12 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 17 Aug 2017 16:19:31 +0000 (12:19 -0400)
Modify the XUL url_prefix utility funtion so that it always uses HTTPS.
Specifically, this allows the offline upload process to function with
servers that only support HTTPS connections.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/xul/staff_client/chrome/content/main/menu.js

index 26034ba..2060c25 100644 (file)
@@ -38,6 +38,7 @@ main.menu.prototype = {
     'toolbar_labelpos' : 'side',
 
     'url_prefix' : function(url,secure) {
+        secure = true; // ssl-everywhere
         // This allows urls to start with a urls key (or be only a urls key)
         // We stop at the first / or ? to allow extra paths and query strings.
         var base_url = url.match(/^[^?/|]+/);