Fix double-slash bug in absolute url generation
This commit is contained in:
@@ -95,7 +95,7 @@ class SihnonFramework_Main {
|
|||||||
$port = $_SERVER['SERVER_PORT'];
|
$port = $_SERVER['SERVER_PORT'];
|
||||||
return 'http' . ($secure ? 's' : '') . '://'
|
return 'http' . ($secure ? 's' : '') . '://'
|
||||||
. $_SERVER['HTTP_HOST'] . (($port == 80 || ($secure && $port == 443)) ? '' : ':' . $port)
|
. $_SERVER['HTTP_HOST'] . (($port == 80 || ($secure && $port == 443)) ? '' : ':' . $port)
|
||||||
. '/' . $this->base_uri . $relative_url;
|
. $this->base_uri . $relative_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function initialise() {
|
public static function initialise() {
|
||||||
|
|||||||
Reference in New Issue
Block a user