From 23cca3ff7437956b6a4d5dd5e46e8c66a893df6e Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Mon, 22 Aug 2011 18:44:41 +0100 Subject: [PATCH] Fix double-slash bug in absolute url generation --- source/lib/SihnonFramework/Main.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/SihnonFramework/Main.class.php b/source/lib/SihnonFramework/Main.class.php index 412c649..2e91893 100644 --- a/source/lib/SihnonFramework/Main.class.php +++ b/source/lib/SihnonFramework/Main.class.php @@ -95,7 +95,7 @@ class SihnonFramework_Main { $port = $_SERVER['SERVER_PORT']; return 'http' . ($secure ? 's' : '') . '://' . $_SERVER['HTTP_HOST'] . (($port == 80 || ($secure && $port == 443)) ? '' : ':' . $port) - . '/' . $this->base_uri . $relative_url; + . $this->base_uri . $relative_url; } public static function initialise() {