diff --git a/scripts/jobs/cron_tasks.php b/scripts/jobs/cron_tasks.php index 41fa028e..8a712a81 100644 --- a/scripts/jobs/cron_tasks.php +++ b/scripts/jobs/cron_tasks.php @@ -114,7 +114,8 @@ while($row = $db->fetch_array($result_tasks)) } // now get rid of old stuff //(but append /* so we don't delete the directory) - safe_exec('rm -rf '. escapeshellarg(makeCorrectFile($configdir.'/*'))); + $configdir.='/*'; + safe_exec('rm -rf '. makeCorrectFile($configdir)); } }