summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2016-09-23 21:16:11 +0200
committerPiBa-NL <pba_2k3@yahoo.com>2016-09-23 21:27:24 +0200
commit348fae16e4c4735afef619184fba76b97effd875 (patch)
treee4347edfed02e243d45086ffaa85c18702cd447c
parent05100687b3300f44423a2009c25d810a05fe9b26 (diff)
downloadpfsense-348fae16e4c4735afef619184fba76b97effd875.zip
pfsense-348fae16e4c4735afef619184fba76b97effd875.tar.gz
Format file_notice alerts in webgui with newline characters as <br/> for easier reading.
-rw-r--r--src/usr/local/www/head.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc
index 615ce9a..c8b882a 100644
--- a/src/usr/local/www/head.inc
+++ b/src/usr/local/www/head.inc
@@ -650,7 +650,7 @@ if (are_notices_pending()):?>
<a href="<?=htmlspecialchars($notice['url'])?>"><?=htmlspecialchars($notice['id'])?></a> -
<?php endif;?>
</b>
- <?=htmlspecialchars($notice['notice'])?>
+ <?=str_replace("\n", "<br/>", htmlspecialchars($notice['notice']))?>
<i>@ <?=date('Y-m-d H:i:s', $notice['time'])?></i>
</li>
<?php endforeach;?>
OpenPOWER on IntegriCloud