diff --git a/source/lib/SihnonFramework/Main.class.php b/source/lib/SihnonFramework/Main.class.php index ba0062e..1a17a0f 100644 --- a/source/lib/SihnonFramework/Main.class.php +++ b/source/lib/SihnonFramework/Main.class.php @@ -23,7 +23,8 @@ class SihnonFramework_Main { protected $base_uri; protected function __construct() { - $this->base_uri = dirname($_SERVER['SCRIPT_NAME']) . '/'; + $dirname = dirname($_SERVER['SCRIPT_NAME']); + $this->base_uri = $dirname == '/' ? '/' : $dirname . '/'; } protected function init() {