From 171164f835c9d6265b59f3736da66429a1d707a8 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 6 Jan 2007 18:46:08 +0000 Subject: [PATCH] Return nothing on empty math tags instead of char encoding --- RELEASE-NOTES | 1 + includes/Math.php | 3 +++ 2 files changed, 4 insertions(+) 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... -- 2.20.1