We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d03b45 commit a08a291Copy full SHA for a08a291
server/lib/classes/cron.d/200-logfiles.inc.php
@@ -217,7 +217,7 @@ public function onRunJob() {
217
foreach($records as $rec){
218
$tmp_path = realpath($rec['document_root'].'/tmp');
219
if($tmp_path != '' && strlen($tmp_path) > 10 && is_dir($tmp_path) && $app->system->is_user($rec['system_user'])){
220
- exec("cd ?; find . -mtime +1 -name 'sess_*' | grep -v -w .no_delete | xargs rm > /dev/null 2> /dev/null", $tmp_path);
+ $app->system->exec_safe("cd ?; find . -mtime +1 -name 'sess_*' | grep -v -w .no_delete | xargs rm > /dev/null 2> /dev/null", $tmp_path);
221
}
222
223
0 commit comments