mirror of
https://github.com/unraid/webgui.git
synced 2026-01-02 07:30:06 -06:00
File manager: fix file overwrite on move operation
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user