From 1621f12a15855b3e1b98d58b6e8effe959926b46 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 4 Dec 2025 00:02:58 +0100 Subject: Fix HTML encoding in preview filters (alternative) (#8259) Alternative to https://github.com/FreshRSS/FreshRSS/pull/8222 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/8222 Co-authored-by: Inverle --- app/Controllers/configureController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Controllers/configureController.php') diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 451e98a8b..86943e663 100644 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -164,8 +164,8 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { 'site' => Minz_Request::paramBoolean('mark_open_site'), 'focus' => Minz_Request::paramBoolean('mark_focus'), ]; - FreshRSS_Context::userConf()->_filtersAction('read', Minz_Request::paramTextToArray('filteractions_read')); - FreshRSS_Context::userConf()->_filtersAction('star', Minz_Request::paramTextToArray('filteractions_star')); + FreshRSS_Context::userConf()->_filtersAction('read', Minz_Request::paramTextToArray('filteractions_read')); // Keep as HTML + FreshRSS_Context::userConf()->_filtersAction('star', Minz_Request::paramTextToArray('filteractions_star')); // Keep as HTML FreshRSS_Context::userConf()->save(); invalidateHttpCache(); @@ -183,7 +183,7 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { public function viewFilterAction(): void { $search = ''; $filters_name = Minz_Request::paramString('filters_name', plaintext: true); - $filteractions = Minz_Request::paramTextToArray($filters_name); + $filteractions = Minz_Request::paramTextToArray($filters_name, plaintext: true); $filteractions = array_map(fn(string $action): string => trim($action), $filteractions); $filteractions = array_filter($filteractions, fn(string $action): bool => $action !== ''); foreach ($filteractions as $action) { -- cgit v1.2.3