From 6588ab09066f6d8f0d2cdef81047a8fe075c7979 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 20 Dec 2022 22:30:58 +0100 Subject: [PATCH] cosmetic --- _admin.php | 2 +- inc/class.dc.log.list.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_admin.php b/_admin.php index 32d28ac..115b7a3 100644 --- a/_admin.php +++ b/_admin.php @@ -26,7 +26,7 @@ dcCore::app()->addBehavior('adminColumnsListsV2', function (ArrayObject $cols) { $cols['dcloglist'] = [ __('Log'), [ - 'date' => [true, __('Date')], + 'date' => [true, __('Date')], //'msg' => [true, __('Message')], 'blog' => [true, __('Blog')], 'table' => [true, __('Component')], diff --git a/inc/class.dc.log.list.php b/inc/class.dc.log.list.php index 542058d..0776af5 100644 --- a/inc/class.dc.log.list.php +++ b/inc/class.dc.log.list.php @@ -74,25 +74,25 @@ class dcLogList extends adminGenericListV2 'check' => '' . form::checkbox(['entries[]'], $this->rs->log_id, ['checked' => $checked]) . '', - 'date' => '' . + 'date' => '' . html::escapeHTML(dt::dt2str( __('%Y-%m-%d %H:%M'), $this->rs->log_dt )) . '', - 'msg' => '' . + 'msg' => '' . nl2br(html::escapeHTML($this->rs->log_msg)) . '', - 'blog' => '' . + 'blog' => '' . html::escapeHTML($this->rs->blog_id) . '', 'table' => '' . html::escapeHTML($this->rs->log_table) . '', - 'user' => '' . + 'user' => '' . html::escapeHTML($this->rs->getUserCN()) . '', - 'ip' => '' . + 'ip' => '' . html::escapeHTML($this->rs->log_ip) . '', ];