mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
BUGFIX: fixed double slash when installed in the root. PATCH via simon_w. #4733 (from r98038)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112093 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
bf5e862c6a
commit
e76df36179
@ -54,7 +54,7 @@ $fileName = dirname($_SERVER['SCRIPT_FILENAME']) . '/' . $url;
|
|||||||
* Very quickly pass through references to files
|
* Very quickly pass through references to files
|
||||||
*/
|
*/
|
||||||
if($url && file_exists($fileName)) {
|
if($url && file_exists($fileName)) {
|
||||||
$fileURL = dirname($_SERVER['SCRIPT_NAME']) . '/' . $url;
|
$fileURL = (dirname($_SERVER['SCRIPT_NAME'])=='/'?'':dirname($_SERVER['SCRIPT_NAME'])) . '/' . $url;
|
||||||
header($_SERVER['SERVER_PROTOCOL'] . ' 301 Moved Permanently');
|
header($_SERVER['SERVER_PROTOCOL'] . ' 301 Moved Permanently');
|
||||||
header("Location: $fileURL");
|
header("Location: $fileURL");
|
||||||
die();
|
die();
|
||||||
|
Loading…
Reference in New Issue
Block a user