From 55b347d6948e675f1478c318c2b4b8084de88b1b Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 11 Aug 2021 10:54:49 +0300 Subject: [PATCH] trim key/value --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index d259e9b..e7fbe9b 100755 --- a/public/index.php +++ b/public/index.php @@ -53,8 +53,8 @@ foreach ($db->getData($ns, $tx, $query, $limit, PAGE_LIMIT) as $value) { 'block' => $value['block'], 'txid' => $value['txid'], 'time' => date('d-m-Y H:i', $value['time']), - 'key' => nl2br($value['key']), - 'value' => nl2br($value['value']), + 'key' => nl2br(trim($value['key'])), + 'value' => nl2br(trim($value['value'])), ]; }