added normalize to OS before using copy under win

This commit is contained in:
Matthew Vale
2015-12-01 17:00:41 +00:00
parent c0382a0a47
commit 0fb8a126ff

View File

@@ -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 {