From: Antoine Musso Date: Sat, 6 Jan 2007 18:46:08 +0000 (+0000) Subject: Return nothing on empty math tags instead of char encoding X-Git-Tag: 1.31.0-rc.0~54638 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;ds=sidebyside;h=171164f835c9d6265b59f3736da66429a1d707a8;p=lhc%2Fweb%2Fwiklou.git Return nothing on empty math tags instead of char encoding --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e7c278d18e..cc305920ae 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 tags. == Languages updated == diff --git a/includes/Math.php b/includes/Math.php index 30b4bfe669..9fa631f7f1 100644 --- a/includes/Math.php +++ b/includes/Math.php @@ -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...