From e65aaa4c08ea342f0123c41dca5b495381f67c1e Mon Sep 17 00:00:00 2001 From: marius Date: Sun, 25 Feb 2018 22:57:15 +0100 Subject: [PATCH] Revert "web: always use secure URL base if available." This reverts commit 1140ec069daae827509ea17e07dfca5aa1b2dd1f. --- html/inc/util.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/inc/util.inc b/html/inc/util.inc index cadc57e728..3c9bc8db2a 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -123,7 +123,7 @@ function secure_url_base() { } function url_base() { - return secure_url_base(); + return is_https()?secure_url_base():URL_BASE; } function send_cookie($name, $value, $permanent, $ops=false) {