Browse Source

Fix get and order when saving user query (#5515)

fix https://github.com/FreshRSS/FreshRSS/issues/5514
Alexandre Alapetite 2 years ago
parent
commit
db5d458cb2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      app/Controllers/configureController.php

+ 6 - 0
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);
 			}