diff --git a/airtime_mvc/application/common/HTTPHelper.php b/airtime_mvc/application/common/HTTPHelper.php index 80a40e2fc..5f06a3f9d 100644 --- a/airtime_mvc/application/common/HTTPHelper.php +++ b/airtime_mvc/application/common/HTTPHelper.php @@ -37,6 +37,9 @@ class Application_Common_HTTPHelper if ($baseDir[0] != "/") { $baseDir = "/" . $baseDir; } + if ($baseDir[strlen($baseDir)-1] != "/") { + $baseDir = $baseDir . "/"; + } $scheme = "http"; if ($secured && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') { @@ -102,4 +105,4 @@ class ZendActionHttpException extends Exception { parent::__construct($message, $code, $previous); } -} \ No newline at end of file +}