diff --git a/common/js/common.js b/common/js/common.js index a617209f6..f99d6fbe0 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -284,7 +284,7 @@ jQuery(function($) { uri = uri.replace(re, toReplace); } - var bUseSSL = !!window.enforce_ssl; + var bUseSSL = !!window.enforce_ssl || (location.protocol == 'https:'); if (!bUseSSL && isArray(window.ssl_actions) && (act=uri.getQuery('act'))) { for (var i=0,c=ssl_actions.length; i < c; i++) { if (ssl_actions[i] === act) {