瀏覽代碼

use fixed value for the replacement as DIRECTORY_SEPARATOR changes per platform

Matthew Vale 9 年之前
父節點
當前提交
367eb3ada6
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      resources/functions.php

+ 2 - 1
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);
 		}
 	}