aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controllers/configureController.php')
-rw-r--r--app/Controllers/configureController.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index 427fcb584..17c6c20bd 100644
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -180,6 +180,25 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController {
FreshRSS_View::prependTitle(_t('conf.reading.title') . ' ยท ');
}
+ public function viewFilterAction(): void {
+ $search = '';
+ $filters_name = Minz_Request::paramString('filters_name', plaintext: true);
+ $filteractions = Minz_Request::paramTextToArray($filters_name);
+ $filteractions = array_map(fn(string $action): string => trim($action), $filteractions);
+ $filteractions = array_filter($filteractions, fn(string $action): bool => $action !== '');
+ foreach ($filteractions as $action) {
+ $search .= "($action) OR ";
+ }
+ $search = preg_replace('/ OR $/', '', $search);
+ Minz_Request::forward([
+ 'c' => 'index',
+ 'a' => 'index',
+ 'params' => [
+ 'search' => $search,
+ ],
+ ], redirect: true);
+ }
+
/**
* This action handles the integration configuration page.
*