CLRF fix
This commit is contained in:
parent
eda21307ff
commit
d82725cb54
1 changed files with 3 additions and 3 deletions
|
@ -509,12 +509,12 @@ SQL;
|
||||||
|
|
||||||
$protocol = empty($_SERVER['HTTPS']) ? "http" : "https";
|
$protocol = empty($_SERVER['HTTPS']) ? "http" : "https";
|
||||||
|
|
||||||
$serverName = $_SERVER['SERVER_NAME'];
|
$serverName = $_SERVER['SERVER_NAME'];
|
||||||
$serverPort = $_SERVER['SERVER_PORT'];
|
$serverPort = $_SERVER['SERVER_PORT'];
|
||||||
$subDir = $CC_CONFIG['baseDir'];
|
$subDir = $CC_CONFIG['baseDir'];
|
||||||
|
|
||||||
if ($subDir[0] === "/") {
|
if ($subDir[0] === "/") {
|
||||||
$subDir = substr($subDir, 1, strlen($subDir) - 1);
|
$subDir = substr($subDir, 1, strlen($subDir) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$baseUrl = "{$protocol}://{$serverName}:{$serverPort}/{$subDir}";
|
$baseUrl = "{$protocol}://{$serverName}:{$serverPort}/{$subDir}";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue