Fix #1949 don't normalize to http URL if enforce_ssl is off

This commit is contained in:
Kijin Sung 2022-06-09 21:54:59 +09:00
parent 06565b05cd
commit d4ffe761c5

View file

@ -519,7 +519,7 @@ jQuery(function($) {
* @return URI
*/
function normailzeUri(uri) {
var protocol = window.enforce_ssl ? 'https' : 'http';
var protocol = window.enforce_ssl ? 'https' : uri.protocol();
var port = (protocol === 'http') ? window.http_port : window.https_port;
var filename = uri.filename() || 'index.php';
var queries = uri.search(true);