From 9699246ebdd029cdc7775034fd474b8b693d9743 Mon Sep 17 00:00:00 2001 From: flyskyko Date: Thu, 29 Sep 2011 06:59:07 +0000 Subject: [PATCH] issue 107, fixed a bug for frondend file path is wrong on windows git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9428 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/frontendfile/FrontEndFileHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/frontendfile/FrontEndFileHandler.class.php b/classes/frontendfile/FrontEndFileHandler.class.php index 03cf4b718..d6a680e4e 100644 --- a/classes/frontendfile/FrontEndFileHandler.class.php +++ b/classes/frontendfile/FrontEndFileHandler.class.php @@ -221,7 +221,7 @@ if(strpos($path, './') === 0) { - if (dirname($_SERVER['SCRIPT_NAME']) == '/') + if (dirname($_SERVER['SCRIPT_NAME']) == '/' || dirname($_SERVER['SCRIPT_NAME']) == '\\') { $path = '/' . substr($path, 2); }