Skip to content

Commit 2bc1d84

Browse files
committed
Preserve indentation from mailq output using <pre>.
1 parent 333d13a commit 2bc1d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/tools_monitor.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ function showMailq() {
568568

569569
if(isset($record['data'])) {
570570
$data = unserialize($record['data']);
571-
$html = nl2br($data['output']);
571+
$html = '<pre>' . htmlspecialchars($data['output']) . '</pre>';
572572
} else {
573573
$html = '<p>'.$app->lng("no_data_mailq_txt").'</p>';
574574
}

0 commit comments

Comments
 (0)