summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-29 23:59:37 +0200
committermsquare <msquare@notrademark.de>2019-06-03 20:33:09 +0200
commite7f10d846e4255f6172835df8a0cb3befa56374f (patch)
treec25f28a4c7b7725c3871636b5b543c9920c95811 /includes/pages
parent3ea2d3e0ed3f03fb38dc99365319455ea9a5993f (diff)
Escape log messages
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/admin_log.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/pages/admin_log.php b/includes/pages/admin_log.php
index 2a736aa5..24903f6d 100644
--- a/includes/pages/admin_log.php
+++ b/includes/pages/admin_log.php
@@ -25,6 +25,7 @@ function admin_log()
$entries = [];
foreach ($log_entries as $entry) {
$data = $entry->toArray();
+ $data['message'] = nl2br(htmlspecialchars($data['message']));
$data['created_at'] = date_format($entry->created_at, 'd.m.Y H:i');
$entries[] = $data;
}