Skip to content

Commit fc3e87f

Browse files
committed
fix prevent empty value that removes all
1 parent b16e374 commit fc3e87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bridges/php/handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function getContent($path)
196196

197197
if (Request::getApiParam('mode') === 'delete') {
198198
$path = Request::getApiParam('path');
199-
$result = $oFtp->delete($path);
199+
$result = $path ? $oFtp->delete($path) : false;
200200
if (! $result) {
201201
throw new Exception("Unknown error removing this item");
202202
}

0 commit comments

Comments
 (0)