r12943 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12942‎ | r12943 | r12944 >
Date:06:36, 3 February 2006
Author:vibber
Status:old
Tags:
Comment:
* (bug 3347) strip linebreaks in math error source
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Math.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Math.php
@@ -162,7 +162,7 @@
163163 $mf = htmlspecialchars( wfMsg( 'math_failure' ) );
164164 $munk = htmlspecialchars( wfMsg( 'math_unknown_error' ) );
165165 $errmsg = htmlspecialchars( wfMsg( $msg ) );
166 - $source = htmlspecialchars($this->tex);
 166+ $source = htmlspecialchars( str_replace( "\n", ' ', $this->tex ) );
167167 return "<strong class='error'>$mf ($errmsg$append): $source</strong>\n";
168168 }
169169
Index: trunk/phase3/RELEASE-NOTES
@@ -591,6 +591,7 @@
592592 * Fix extra namespace for Bulgarian
593593 * (bug 4303) Add $wgFavicon to change the shorticon icon link from
594594 the default /favicon.ico or disable it (if set to false)
 595+* (bug 3347) strip linebreaks in math error source
595596
596597
597598 === Caveats ===

Status & tagging log