r30272 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30271‎ | r30272 | r30273 >
Date:23:30, 29 January 2008
Author:brion
Status:old
Tags:
Comment:
xhtml correctness for namespaces containing &
Modified paths:
  • /trunk/phase3/includes/SpecialSearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialSearch.php
@@ -392,8 +392,9 @@
393393 if( '' == $name ) {
394394 $name = wfMsg( 'blanknamespace' );
395395 }
 396+ $encName = htmlspecialchars( $name );
396397 $namespaces .= " <label><input type='checkbox' value=\"1\" name=\"" .
397 - "ns{$ns}\"{$checked} />{$name}</label>\n";
 398+ "ns{$ns}\"{$checked} />{$encName}</label>\n";
398399 }
399400
400401 $checked = $this->searchRedirects

Status & tagging log