Fix consistent quoting

This commit is contained in:
Bartek Fabiszewski 2019-02-21 19:26:20 +01:00
parent b77f1db6ed
commit 8ecdf36c5e

View File

@ -117,8 +117,8 @@
public static function getBaseUrl() { public static function getBaseUrl() {
$proto = (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] == "" || $_SERVER["HTTPS"] == "off") ? "http://" : "https://"; $proto = (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] == "" || $_SERVER["HTTPS"] == "off") ? "http://" : "https://";
// Check if we are behind an https proxy // Check if we are behind an https proxy
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { if (isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"] == "https") {
$proto = 'https://'; $proto = "https://";
} }
$host = isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : ""; $host = isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : "";
if (realpath($_SERVER["SCRIPT_FILENAME"])) { if (realpath($_SERVER["SCRIPT_FILENAME"])) {