From 8ecdf36c5ecdc33fbd4f248381f29cf301c4d55d Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Thu, 21 Feb 2019 19:26:20 +0100 Subject: [PATCH] Fix consistent quoting --- helpers/utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/utils.php b/helpers/utils.php index 86d64d3..fc20279 100644 --- a/helpers/utils.php +++ b/helpers/utils.php @@ -117,8 +117,8 @@ public static function getBaseUrl() { $proto = (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] == "" || $_SERVER["HTTPS"] == "off") ? "http://" : "https://"; // Check if we are behind an https proxy - if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { - $proto = 'https://'; + if (isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"] == "https") { + $proto = "https://"; } $host = isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : ""; if (realpath($_SERVER["SCRIPT_FILENAME"])) {