From: Brion Vibber Date: Tue, 29 Jan 2008 23:30:20 +0000 (+0000) Subject: xhtml correctness for namespaces containing & X-Git-Tag: 1.31.0-rc.0~49708 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=c1471c6f3a10607a158a518711fffbd2dbf31a6b;p=lhc%2Fweb%2Fwiklou.git xhtml correctness for namespaces containing & --- diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index e30ad08b06..d28cea37e9 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -392,8 +392,9 @@ class SpecialSearch { if( '' == $name ) { $name = wfMsg( 'blanknamespace' ); } + $encName = htmlspecialchars( $name ); $namespaces .= " \n"; + "ns{$ns}\"{$checked} />{$encName}\n"; } $checked = $this->searchRedirects