aboutsummaryrefslogtreecommitdiff
path: root/p/api/query.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2026-01-03 16:52:33 +0100
committerGravatar GitHub <noreply@github.com> 2026-01-03 16:52:33 +0100
commit252703305758e2ed0e6257ae94fdb3b4b90f7184 (patch)
tree058b449bda17aef10eefbaadd38741161b47cb2b /p/api/query.php
parentf0769d6e557320c6af93f7f589f9dbf05a96ca47 (diff)
Fix unwanted expansion of user queries in some cases (#8395)
fix https://github.com/FreshRSS/FreshRSS/issues/8378
Diffstat (limited to 'p/api/query.php')
-rw-r--r--p/api/query.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/p/api/query.php b/p/api/query.php
index 7534a9e85..0ee79567d 100644
--- a/p/api/query.php
+++ b/p/api/query.php
@@ -92,14 +92,14 @@ foreach (FreshRSS_Context::userConf()->queries as $raw_query) {
}
Minz_Request::_param('state', (string)$query->getState());
- $search = $query->getSearch()->__toString();
+ $search = $query->getSearch()->toString();
// Note: we disallow references to user queries in public user search to avoid sniffing internal user queries
$userSearch = new FreshRSS_BooleanSearch(Minz_Request::paramString('search', plaintext: true), 0, 'AND', allowUserQueries: false);
- if ($userSearch->__toString() !== '') {
+ if ($userSearch->toString() !== '') {
if ($search === '') {
- $search = $userSearch->__toString();
+ $search = $userSearch->toString();
} else {
- $search .= ' (' . $userSearch->__toString() . ')';
+ $search .= ' (' . $userSearch->toString() . ')';
}
}
Minz_Request::_param('search', $search);
@@ -117,7 +117,7 @@ $view = new FreshRSS_View();
try {
FreshRSS_Context::updateUsingRequest(false);
- Minz_Request::_param('search', $userSearch->__toString()); // Restore user search
+ Minz_Request::_param('search', $userSearch->toString()); // Restore user search
$view->entries = FreshRSS_index_Controller::listEntriesByContext();
} catch (Minz_Exception) {
Minz_Error::error(400, 'Bad user query!');