From 541224f87bca88995b9721ced0b270d91b73015c Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Thu, 6 Jan 2022 14:17:27 +0100 Subject: [PATCH] Markup/Misc * fixed ajax fulltext sanitizer eating \s instead of \n after 57864d25442dc94cee0b98a2a9bc9e88d40569e9 * happy new year --- includes/ajaxHandler.class.php | 2 +- template/pages/home.tpl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ajaxHandler.class.php b/includes/ajaxHandler.class.php index 9790c37d..a55c6e8a 100644 --- a/includes/ajaxHandler.class.php +++ b/includes/ajaxHandler.class.php @@ -113,7 +113,7 @@ class AjaxHandler protected static function checkFulltext(string $val) : string { // trim non-printable chars - return preg_replace('/[\p{Cf} \p{Co} \p{Cs} \p{Cn}]/ui', '', $val); + return preg_replace('/[\p{Cf}\p{Co}\p{Cs}\p{Cn}]/ui', '', $val); } } ?> diff --git a/template/pages/home.tpl.php b/template/pages/home.tpl.php index 30beec2c..5517798e 100644 --- a/template/pages/home.tpl.php +++ b/template/pages/home.tpl.php @@ -85,7 +85,7 @@ endif; |Github|