* Fix empty message checks for message names containing &
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 29 Jun 2007 14:42:27 +0000 (14:42 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 29 Jun 2007 14:42:27 +0000 (14:42 +0000)
  This corrects some odd behavior with sidebar items and custom namespaces
  containing ampersands.

RELEASE-NOTES
includes/GlobalFunctions.php

index e52d105..44db46f 100644 (file)
@@ -243,6 +243,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Don't use garbled parser cache output when viewing custom CSS or JavaScript
   pages
 * (bug 10406) Fix Special:Listusers filter form for non-ASCII localizations
+* Fix empty message checks for message names containing &
+  This corrects some odd behavior with sidebar items and custom namespaces
+  containing ampersands.
 
 
 == API changes since 1.10 ==
index f5bc405..429fd4b 100644 (file)
@@ -1731,7 +1731,7 @@ function wfAppendToArrayIfNotDefault( $key, $value, $default, &$changed ) {
  * @return bool
  */
 function wfEmptyMsg( $msg, $wfMsgOut ) {
-       return $wfMsgOut === "&lt;$msg&gt;";
+       return $wfMsgOut === htmlspecialchars( "<$msg>" );
 }
 
 /**