浏览代码

added normalize to OS before using copy under win

Matthew Vale 9 年之前
父节点
当前提交
c5d609f219
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      core/install/resources/classes/install_switch.php

+ 2 - 0
core/install/resources/classes/install_switch.php

@@ -86,6 +86,8 @@ include "root.php";
 				exec ($cmd);
 			}
 			elseif(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'){
+				$src = normalize_path_to_os($src);
+				$dst = normalize_path_to_os($dst);
 				exec("copy /L '$src' '$dst'");
 			}
 			else {