From 42e977179153f7b2cfdee577c25e7117d1bdd88e Mon Sep 17 00:00:00 2001 From: Matthew Vale Date: Tue, 1 Dec 2015 11:44:24 +0000 Subject: [PATCH] use fixed value for the replacement as DIRECTORY_SEPARATOR changes per platform --- resources/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/functions.php b/resources/functions.php index 50b86716a3..4d2278a217 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -601,8 +601,9 @@ //echo realpath(sys_get_temp_dir()); if ( !function_exists('normalize_path')) { + //don't use DIRECTORY_SEPARATOR as it will change on a per platform basis and we need consistency function normalize_path($path) { - return str_replace(array('/','\\'), DIRECTORY_SEPARATOR, $path); + return str_replace(array('/','\\'), '/', $path); } }