Return nothing on empty math tags instead of char encoding
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 6 Jan 2007 18:46:08 +0000 (18:46 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 6 Jan 2007 18:46:08 +0000 (18:46 +0000)
RELEASE-NOTES
includes/Math.php

index e7c278d..cc30592 100644 (file)
@@ -470,6 +470,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Recentchanges RSS/Atom feeds now use a separate message for the description
   to avoid cluttering it with useless wiki formatting
 * (bug 8417) Handle EXIF unknown dates
+* (bug 8372) Return nothing on empty <math> tags.
 
 
 == Languages updated ==
index 30b4bfe..9fa631f 100644 (file)
@@ -39,6 +39,9 @@ class MathRenderer {
                        # No need to render or parse anything more!
                        return ('$ '.htmlspecialchars( $this->tex ).' $');
                }
+               if( $this->tex == '' ) {
+                       return; # bug 8372
+               }
 
                if( !$this->_recall() ) {
                        # Ensure that the temp and output directories are available before continuing...