aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/indexController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-12-11 18:18:22 +0100
committerGravatar GitHub <noreply@github.com> 2025-12-11 18:18:22 +0100
commit044f066c1c9f08ab41c93e1f065053ad22e4959e (patch)
tree3eb5f1538afa3a3e2a2f29f95e6ea4b4218f571a /app/Controllers/indexController.php
parent394411677ea9b3e5bb520c39db6e39f751c35e28 (diff)
Fix htmlspecialchars for search (#8306)
Regression from https://github.com/FreshRSS/FreshRSS/pull/8293
Diffstat (limited to 'app/Controllers/indexController.php')
-rw-r--r--app/Controllers/indexController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php
index d914e4eef..3961a3fcd 100644
--- a/app/Controllers/indexController.php
+++ b/app/Controllers/indexController.php
@@ -106,7 +106,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
$title = FreshRSS_Context::$name;
$search = FreshRSS_Context::$search->__toString();
if ($search !== '') {
- $title = '“' . $search . '”';
+ $title = '“' . htmlspecialchars($search, ENT_COMPAT, 'UTF-8') . '”';
}
if (FreshRSS_Context::$get_unread > 0) {
$title = '(' . FreshRSS_Context::$get_unread . ') ' . $title;