From 60d52638279cdc5138e9dceb15d120a6b21936ba Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 3 Feb 2006 06:36:05 +0000 Subject: [PATCH] * (bug 3347) strip linebreaks in math error source --- RELEASE-NOTES | 1 + includes/Math.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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"; } -- 2.20.1