From d82725cb54e1937dcd98ffaef76e67e578c7a747 Mon Sep 17 00:00:00 2001 From: Naomi Date: Wed, 22 May 2013 15:35:59 -0400 Subject: [PATCH] CLRF fix --- airtime_mvc/application/models/StoredFile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 8d8615a1f..74e0a7a05 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -509,12 +509,12 @@ SQL; $protocol = empty($_SERVER['HTTPS']) ? "http" : "https"; - $serverName = $_SERVER['SERVER_NAME']; + $serverName = $_SERVER['SERVER_NAME']; $serverPort = $_SERVER['SERVER_PORT']; $subDir = $CC_CONFIG['baseDir']; - if ($subDir[0] === "/") { - $subDir = substr($subDir, 1, strlen($subDir) - 1); + if ($subDir[0] === "/") { + $subDir = substr($subDir, 1, strlen($subDir) - 1); } $baseUrl = "{$protocol}://{$serverName}:{$serverPort}/{$subDir}";