From 418e46c5d8eec6f9f78a04a9f53ff6e3383fefbc Mon Sep 17 00:00:00 2001 From: Xabi Spacebiker Date: Thu, 28 Sep 2017 11:23:32 +0200 Subject: [PATCH] Update HTTPHelper.php We want getStationUrl to return a slash at the end, so we add it if missing --- airtime_mvc/application/common/HTTPHelper.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +}