Skip to content

Commit 865130f

Browse files
author
Till Brehm
committed
Merge branch 'patch-php-sess-tmp-safe-exec' into 'stable-3.1'
Fix exec to exec_safe to make placeholder work again, #5434 #5510 See merge request ispconfig/ispconfig3!946
2 parents a25de6f + 4b281bf commit 865130f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/200-logfiles.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function onRunJob() {
217217
foreach($records as $rec){
218218
$tmp_path = realpath($rec['document_root'].'/tmp');
219219
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);
220+
$app->system->exec_safe("cd ?; find . -mtime +1 -name 'sess_*' | grep -v -w .no_delete | xargs rm > /dev/null 2> /dev/null", $tmp_path);
221221
}
222222
}
223223
}

0 commit comments

Comments
 (0)