* (bug 3347) strip linebreaks in math error source
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Feb 2006 06:36:05 +0000 (06:36 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Feb 2006 06:36:05 +0000 (06:36 +0000)
RELEASE-NOTES
includes/Math.php

index 9160a62..a2cc539 100644 (file)
@@ -591,6 +591,7 @@ fully support the editing toolbar, but was found to be too confusing.
 * Fix extra namespace for Bulgarian
 * (bug 4303) Add $wgFavicon to change the shorticon icon link from
   the default /favicon.ico or disable it (if set to false)
+* (bug 3347) strip linebreaks in math error source
 
 
 === Caveats ===
index f682755..6381137 100644 (file)
@@ -162,7 +162,7 @@ class MathRenderer {
                $mf   = htmlspecialchars( wfMsg( 'math_failure' ) );
                $munk = htmlspecialchars( wfMsg( 'math_unknown_error' ) );
                $errmsg = htmlspecialchars( wfMsg( $msg ) );
-               $source = htmlspecialchars($this->tex);
+               $source = htmlspecialchars( str_replace( "\n", ' ', $this->tex ) );
                return "<strong class='error'>$mf ($errmsg$append): $source</strong>\n";
        }