From 3653a86ad3fe9b5ca40db1e3cabe7b7636bf2b86 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 2 Mar 2023 11:00:03 +0000 Subject: message filter entries are stored encoded - make sure to decode the word before we use it --- Zotlabs/Lib/MessageFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Lib/MessageFilter.php') diff --git a/Zotlabs/Lib/MessageFilter.php b/Zotlabs/Lib/MessageFilter.php index 7d6dcbe8e..e7382c0d5 100644 --- a/Zotlabs/Lib/MessageFilter.php +++ b/Zotlabs/Lib/MessageFilter.php @@ -25,7 +25,7 @@ class MessageFilter { if ($exclude) { foreach ($exclude as $word) { - $word = trim($word); + $word = html_entity_decode(trim($word)); if (! $word) { continue; } @@ -73,7 +73,7 @@ class MessageFilter { if ($include) { foreach ($include as $word) { - $word = trim($word); + $word = html_entity_decode(trim($word)); if (! $word) { continue; } -- cgit v1.2.3