From: Brion Vibber Date: Fri, 3 Feb 2006 06:36:05 +0000 (+0000) Subject: * (bug 3347) strip linebreaks in math error source X-Git-Tag: 1.6.0~382 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=60d52638279cdc5138e9dceb15d120a6b21936ba;p=lhc%2Fweb%2Fwiklou.git * (bug 3347) strip linebreaks in math error source --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9160a62558..a2cc5398ac 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Math.php b/includes/Math.php index f68275578d..638113770c 100644 --- a/includes/Math.php +++ b/includes/Math.php @@ -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 "$mf ($errmsg$append): $source\n"; }