Skip to content

Commit 814ec01

Browse files
author
Till Brehm
committed
#4020 Added user agent string to wget cronjobs.
1 parent bae4a6e commit 814ec01

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']} -q -t 1 -T 7200 -O " . $log_wget_target . " " . escapeshellarg($job['command']) . " " . $log_target;
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;
241241
} else {
242242
$web_root = '';
243243
if($job['type'] == 'chrooted') {

0 commit comments

Comments
 (0)