aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-07-10 08:04:26 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-10 08:04:26 +0200
commitdb5d458cb24436bf6d2ab203c58b26a162ab3e74 (patch)
tree64748e42a91ed15077e4fb8ad581a2ec2c8480e8 /app/Controllers/configureController.php
parent6f4c6f89938d625eb70a11765d99290e1f6d6243 (diff)
Fix get and order when saving user query (#5515)
fix https://github.com/FreshRSS/FreshRSS/issues/5514
Diffstat (limited to 'app/Controllers/configureController.php')
-rw-r--r--app/Controllers/configureController.php6
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);
}