From f2982da0104b13c01a9cc5d1e78e4d57ba48e985 Mon Sep 17 00:00:00 2001 From: MichaelTempest Date: Wed, 24 Jun 2009 19:41:01 +0000 Subject: [PATCH] Item1757: Encode all control chars in the img tag's alternate text, including 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 --- lib/Foswiki/Plugins/MathModePlugin/Core.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Foswiki/Plugins/MathModePlugin/Core.pm b/lib/Foswiki/Plugins/MathModePlugin/Core.pm index 07615b9..c859bec 100644 --- a/lib/Foswiki/Plugins/MathModePlugin/Core.pm +++ b/lib/Foswiki/Plugins/MathModePlugin/Core.pm @@ -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; }