xhtml correctness for namespaces containing &
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 29 Jan 2008 23:30:20 +0000 (23:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 29 Jan 2008 23:30:20 +0000 (23:30 +0000)
includes/SpecialSearch.php

index e30ad08..d28cea3 100644 (file)
@@ -392,8 +392,9 @@ class SpecialSearch {
                        if( '' == $name ) {
                                $name = wfMsg( 'blanknamespace' );
                        }
+                       $encName = htmlspecialchars( $name );
                        $namespaces .= " <label><input type='checkbox' value=\"1\" name=\"" .
-                         "ns{$ns}\"{$checked} />{$name}</label>\n";
+                         "ns{$ns}\"{$checked} />{$encName}</label>\n";
                }
 
                $checked = $this->searchRedirects