aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/indexController.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 /app/Controllers/indexController.php
parentf0769d6e557320c6af93f7f589f9dbf05a96ca47 (diff)
Fix unwanted expansion of user queries in some cases (#8395)
fix https://github.com/FreshRSS/FreshRSS/issues/8378
Diffstat (limited to 'app/Controllers/indexController.php')
-rw-r--r--app/Controllers/indexController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php
index 0d704c496..ca88c9171 100644
--- a/app/Controllers/indexController.php
+++ b/app/Controllers/indexController.php
@@ -94,8 +94,8 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
};
$searchString = $operator . ':' . ($offset < 0 ? '/' : '') . date('Y-m-d', $timestamp + ($offset * 86400)) . ($offset > 0 ? '/' : '');
return Minz_Url::display(Minz_Request::modifiedCurrentRequest([
- 'search' => FreshRSS_Context::$search->__toString() === '' ? $searchString :
- FreshRSS_Context::$search->enforce(new FreshRSS_Search($searchString))->__toString(),
+ 'search' => FreshRSS_Context::$search->toString() === '' ? $searchString :
+ FreshRSS_Context::$search->enforce(new FreshRSS_Search($searchString))->toString(),
]));
}
@@ -135,7 +135,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
$this->view->rss_title = FreshRSS_Context::$name . ' | ' . FreshRSS_View::title();
$title = FreshRSS_Context::$name;
- $search = FreshRSS_Context::$search->__toString();
+ $search = FreshRSS_Context::$search->toString(expandUserQueries: false);
if ($search !== '') {
$title = '“' . htmlspecialchars($search, ENT_COMPAT, 'UTF-8') . '”';
}