mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 50245 via svnmerge from
http://svn.silverstripe.com/open/modules/sapphire/branches/2.2.2 ........ r50245 | sminnee | 2008-02-27 11:38:55 +1300 (Wed, 27 Feb 2008) | 1 line Small fix for session bugs on Lightspeed server ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@50866 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6c5ee3ceb9
commit
6d87a6f188
@ -357,7 +357,7 @@ class Director {
|
||||
if(self::$alternateBaseURL) return self::$alternateBaseURL;
|
||||
else {
|
||||
$base = dirname(dirname($_SERVER['SCRIPT_NAME']));
|
||||
if($base == '/' || $base == '\\') return '/';
|
||||
if($base == '/' || $base == '/.' || $base == '\\') return '/';
|
||||
else return $base . '/';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user