M3 Security Fixes for pass 29
This commit is contained in:
@@ -40,7 +40,6 @@ class DeleteOldLabels extends Command
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
// $this->info('Start CallCloseAPI...');
|
||||
ini_set('max_execution_time', Config::get('arrays.PHPTimeOutCL'));
|
||||
ini_set('max_input_time', Config::get('arrays.PHPTimeOutCL'));
|
||||
ini_set('default_socket_timeout', Config::get('arrays.PHPTimeOutCL'));
|
||||
@@ -62,7 +61,6 @@ class DeleteOldLabels extends Command
|
||||
Log::channel('dailyCron')->info('Getting Files From Directory: ' . $labelsDirectory);
|
||||
|
||||
exec('find ' . $labelsDirectory . ' -ctime +180 -type f -exec rm {} \;');
|
||||
// exec('find '.$labelsDirectory.' -ctime +190 -type f -print | wc -l');
|
||||
}
|
||||
|
||||
$labelsFolder = $labelsDirectoryTmp;
|
||||
@@ -82,7 +80,6 @@ class DeleteOldLabels extends Command
|
||||
}
|
||||
}
|
||||
|
||||
// $this->info("Files to Delete...");
|
||||
// dump($filesToDeleteArr);
|
||||
|
||||
// Delete Old Files
|
||||
@@ -92,7 +89,6 @@ class DeleteOldLabels extends Command
|
||||
$this->info('End Delete Old Labels Command...');
|
||||
|
||||
} catch (\Throwable $th) {
|
||||
// Log::error($th);
|
||||
Log::channel('dailyCron')->error($th);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user