From ff9d124dcf82c833f4edc616f13e69619492f33f Mon Sep 17 00:00:00 2001 From: David Bogner Date: Thu, 26 Oct 2023 03:25:53 +0200 Subject: [PATCH] Fix curl params --- rule/ftpsyncfiles/rule_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/ftpsyncfiles/rule_class.php b/rule/ftpsyncfiles/rule_class.php index 28325a53..8eb073a6 100644 --- a/rule/ftpsyncfiles/rule_class.php +++ b/rule/ftpsyncfiles/rule_class.php @@ -208,7 +208,7 @@ private function download_files(int $did): void { // Delete the file from the remote server using cURL. $deletech = curl_init(); curl_setopt($deletech, CURLOPT_URL, $remotepath); - curl_setopt($deletech, CURLOPT_CUSTOMREQUEST, 'DELETE'); + curl_setopt($deletech, CURLOPT_QUOTE, array("rm ".escapeshellarg("$remotepath")); $deleteresult = curl_exec($deletech); curl_close($deletech); if ($deleteresult === false) {