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
1 changed files with 4 additions and 1 deletions
|
@ -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') {
|
||||||
|
@ -102,4 +105,4 @@ class ZendActionHttpException extends Exception {
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, $code, $previous);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue