diff --git a/src/Mixins/DownloadModx.php b/src/Mixins/DownloadModx.php index fce4c19..10f4fde 100644 --- a/src/Mixins/DownloadModx.php +++ b/src/Mixins/DownloadModx.php @@ -155,8 +155,8 @@ protected function retrieveFromCache($version) unlink("$path/$k/config.core.php"); } // Copy each dir to path specified in config file then remove that dir from source - exec("cp -r $path/$k/* $customPath"); - exec("rm -rf $path/$k"); + exec("cp -r $path/$k/* '$customPath'"); + exec('rm -rf ' . escapeshellarg("$path/$k")); } unlink("$path/config.core.php");