diff options
| author | 2023-07-10 08:04:26 +0200 | |
|---|---|---|
| committer | 2023-07-10 08:04:26 +0200 | |
| commit | db5d458cb24436bf6d2ab203c58b26a162ab3e74 (patch) | |
| tree | 64748e42a91ed15077e4fb8ad581a2ec2c8480e8 | |
| parent | 6f4c6f89938d625eb70a11765d99290e1f6d6243 (diff) | |
Fix get and order when saving user query (#5515)
fix https://github.com/FreshRSS/FreshRSS/issues/5514
| -rw-r--r-- | app/Controllers/configureController.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 7981c00bb..efd90255a 100644 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -366,6 +366,12 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { /** @var array<string,string|array<string,string>> $params */ $params = array_filter(Minz_Request::paramArray('query')); $queryParams = []; + if (!empty($params['get']) && is_string($params['get'])) { + $queryParams['get'] = htmlspecialchars_decode($params['get'], ENT_QUOTES); + } + if (!empty($params['order']) && is_string($params['order'])) { + $queryParams['order'] = htmlspecialchars_decode($params['order'], ENT_QUOTES); + } if (!empty($params['search']) && is_string($params['search'])) { $queryParams['search'] = htmlspecialchars_decode($params['search'], ENT_QUOTES); } |
