Update HTTPHelper.php
We want getStationUrl to return a slash at the end, so we add it if missing
This commit is contained in:
parent
90e91b1a55
commit
418e46c5d8
|
@ -37,6 +37,9 @@ class Application_Common_HTTPHelper
|
||||||
if ($baseDir[0] != "/") {
|
if ($baseDir[0] != "/") {
|
||||||
$baseDir = "/" . $baseDir;
|
$baseDir = "/" . $baseDir;
|
||||||
}
|
}
|
||||||
|
if ($baseDir[strlen($baseDir)-1] != "/") {
|
||||||
|
$baseDir = $baseDir . "/";
|
||||||
|
}
|
||||||
|
|
||||||
$scheme = "http";
|
$scheme = "http";
|
||||||
if ($secured && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
|
if ($secured && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
|
||||||
|
|
Loading…
Reference in New Issue