Skip to content

Commit 616db81

Browse files
author
Marius Burkard
committed
- added --no-check-certificate to wget on web cron, fixes #4960
1 parent 87c0dde commit 616db81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/cron_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function _write_crontab() {
237237

238238
$command .= "\t{$this->parent_domain['system_user']}"; //* running as user
239239
if($job['type'] == 'url') {
240-
$command .= "\t{$cron_config['wget']} --user-agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0' -q -t 1 -T 7200 -O " . $log_wget_target . " " . escapeshellarg($job['command']) . " " . $log_target;
240+
$command .= "\t{$cron_config['wget']} --no-check-certificate --user-agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0' -q -t 1 -T 7200 -O " . $log_wget_target . " " . escapeshellarg($job['command']) . " " . $log_target;
241241
} else {
242242
if(strpos($job['command'], "\n") !== false || strpos($job['command'], "\r") !== false || strpos($job['command'], chr(0)) !== false) {
243243
$app->log("Insecure Cron job SKIPPED: " . $job['command'], LOGLEVEL_WARN);

0 commit comments

Comments
 (0)