Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

Commit

Permalink
Fix wp eval quote escaping for DB dump tidy-up.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgibbs committed Oct 20, 2019
1 parent 76c9608 commit a0283b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver/Element/Wpcli/FilesystemElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function deleteFile(string $abspath)
return;
}

$delete_cmd = sprintf('@unlink(%s);', escapeshellarg($abspath));
$delete_cmd = sprintf('"@unlink(\'%s\');"', $abspath );
$this->drivers->getDriver()->wpcli('eval', $delete_cmd, ['--skip-wordpress']);
}
}
Expand Down

0 comments on commit a0283b1

Please sign in to comment.