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
1 changed files with 2 additions and 0 deletions

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 {