From b2b249d6d6e1339b7a55a61ac06b0520b9dc91b9 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Sat, 6 Jun 2020 20:59:53 +0200 Subject: Fix user queries when they contain " (#3037) Before, the user queries were working filter-wise but they failed at being displayed properly in the configuration page. Thus they were stored without the search param. Now, the search is URL encoded to avoid that kind of behavior and keep the search param through out the user query's life. --- app/Controllers/configureController.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/Controllers/configureController.php') diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 09efef40c..ba7316472 100755 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -281,6 +281,9 @@ class FreshRSS_configure_Controller extends Minz_ActionController { if (!$query['name']) { $query['name'] = _t('conf.query.number', $key + 1); } + if ($query['search']) { + $query['search'] = urldecode($query['search']); + } $queries[] = new FreshRSS_UserQuery($query, $feed_dao, $category_dao); } FreshRSS_Context::$user_conf->queries = $queries; -- cgit v1.2.3