Skip to content

Commit

Permalink
Item1757: Encode all control chars in the img tag's alternate text, i…
Browse files Browse the repository at this point in the history
…ncluding newlines, so that the img tag is always on a single line

git-svn-id: http://svn.foswiki.org/trunk/MathModePlugin@4293 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelTempest authored and MichaelTempest committed Jun 24, 2009
1 parent 023111f commit f2982da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/MathModePlugin/Core.pm
Expand Up @@ -228,7 +228,7 @@ sub entityEncode {
$extra ||= '';

$text =~
s/([[\x01-\x09\x0b\x0c\x0e-\x1f"%&'*<=>@[_\|$extra])/'&#'.ord($1).';'/ge;
s/([[\x01-\x1f"%&'*<=>@[_\|$extra])/'&#'.ord($1).';'/ge;

return $text;
}
Expand Down

0 comments on commit f2982da

Please sign in to comment.