File manager: fix file overwrite on move operation

This commit is contained in:
bergware
2025-06-11 23:44:25 +02:00
parent 691b1fa426
commit f2fa2109e5

View File

@@ -186,7 +186,7 @@ while (true) {
} else {
$target = validname($target, false);
if ($target) {
$f = $exist ? 'f' : 'n';
$f = $exist ? 'n' : 'f';
exec("mv -{$f}t ".escapeshellarg($target)." ".quoted($source)." 1>$status 2>$error & echo \$!", $pid);
} else {
$reply['error'] = 'Invalid target name';