File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ protected function addNamespaceSelector(Form $searchForm)
302302 $ currentWrapper = $ searchForm ->addTagOpen ('div ' )->addClass ('current ' );
303303 if ($ baseNS ) {
304304 $ currentWrapper ->addClass ('changed ' );
305- $ searchForm ->addHTML ('@ ' . $ baseNS );
305+ $ searchForm ->addHTML ('@ ' . hsc ( $ baseNS) );
306306 } else {
307307 $ searchForm ->addHTML ($ lang ['search_any_ns ' ]);
308308 }
@@ -323,7 +323,7 @@ protected function addNamespaceSelector(Form $searchForm)
323323
324324 foreach ($ extraNS as $ ns => $ count ) {
325325 $ listItem = $ searchForm ->addTagOpen ('li ' );
326- $ label = $ ns . ($ count ? " <bdi>( $ count)</bdi> " : '' );
326+ $ label = hsc ( $ ns) . ($ count ? " <bdi>( $ count)</bdi> " : '' );
327327
328328 if ($ ns === $ baseNS ) {
329329 $ listItem ->addClass ('active ' );
You can’t perform that action at this time.
0 commit comments