Skip to content

Commit 63b51e3

Browse files
author
Marius Burkard
committed
- added newlines for better visibility of warnings
1 parent 1683d74 commit 63b51e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install/patches/upd_0085.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ public function onAfterSQL() {
3737
} elseif(preg_match('/^\w+=/', $line)) {
3838
if(preg_match('/\s/', $line)) {
3939
// warning line with env var and space!
40-
swriteln($inst->lng('[WARNING] Cron line in file ' . $cron_file . ' contains environment variable.'));
40+
swriteln($inst->lng("\n" . '[WARNING] Cron line in file ' . $cron_file . ' contains environment variable.' . "\n"));
4141
}
4242
} elseif(!isset($fields[5])) {
4343
// invalid line (missing user)
44-
swriteln($inst->lng('[WARNING] Cron line in file ' . $cron_file . ' misses user field.'));
44+
swriteln($inst->lng("\n" . '[WARNING] Cron line in file ' . $cron_file . ' misses user field.' . "\n"));
4545
} else {
4646
$check_filename = trim($fields[5]) . $check_suffix;
4747
if(substr($cron_file, -strlen($check_filename)) != $check_filename) {
4848
// warning user not equal to file name
49-
swriteln($inst->lng('[WARNING] SUSPECT USER IN CRON FILE ' . $cron_file . '! CHECK CRON FILE FOR MALICIOUS ENTRIES!'));
49+
swriteln($inst->lng("\n" . '[WARNING] SUSPECT USER IN CRON FILE ' . $cron_file . '! CHECK CRON FILE FOR MALICIOUS ENTRIES!' . "\n"));
5050
}
5151
}
5252
}

0 commit comments

Comments
 (0)