Fix #357 incorrect redirect to insecure URL when using setQuery() in JS

This commit is contained in:
Kijin Sung 2016-03-08 18:10:29 +09:00
parent 005e443d3a
commit 5debdea06f

View file

@ -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) {