Skip to content

Commit

Permalink
Fix curl params
Browse files Browse the repository at this point in the history
  • Loading branch information
dasistwas committed Oct 26, 2023
1 parent ff9d124 commit c2d68af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rule/ftpsyncfiles/rule_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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_QUOTE, array("rm ".escapeshellarg("$remotepath"));
curl_setopt($deletech, CURLOPT_QUOTE, array("rm ".escapeshellarg("$remotepath")));
$deleteresult = curl_exec($deletech);
curl_close($deletech);
if ($deleteresult === false) {
Expand Down

0 comments on commit c2d68af

Please sign in to comment.