[web-wiki] upgrade-librarian-b: Upgrade to 2025-05-14b-librarian due to XSS security update

From: Date: Wed, 10 Sep 2025 09:06:27 +0000
Subject: [web-wiki] upgrade-librarian-b: Upgrade to 2025-05-14b-librarian due to XSS security update
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-33192@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr) Date: 2025-09-10T09:35:28+01:00 Commit: https://github.com/php/web-wiki/commit/6d89f5a7004421e5825c0687f59f3a6f8c3feb29 Raw diff: https://github.com/php/web-wiki/commit/6d89f5a7004421e5825c0687f59f3a6f8c3feb29.diff Upgrade to 2025-05-14b-librarian due to XSS security update Changed paths: M dokuwiki/inc/Ui/Search.php Diff: diff --git a/dokuwiki/inc/Ui/Search.php b/dokuwiki/inc/Ui/Search.php index 62a25404..a26bfc93 100644 --- a/dokuwiki/inc/Ui/Search.php +++ b/dokuwiki/inc/Ui/Search.php @@ -302,7 +302,7 @@ protected function addNamespaceSelector(Form $searchForm) $currentWrapper = $searchForm->addTagOpen('div')->addClass('current'); if ($baseNS) { $currentWrapper->addClass('changed'); - $searchForm->addHTML('@' . $baseNS); + $searchForm->addHTML('@' . hsc($baseNS)); } else { $searchForm->addHTML($lang['search_any_ns']); } @@ -323,7 +323,7 @@ protected function addNamespaceSelector(Form $searchForm) foreach ($extraNS as $ns => $count) { $listItem = $searchForm->addTagOpen('li'); - $label = $ns . ($count ? " <bdi>($count)</bdi>" : ''); + $label = hsc($ns) . ($count ? " <bdi>($count)</bdi>" : ''); if ($ns === $baseNS) { $listItem->addClass('active');

« previous php.webmaster (#33192) next »