[Mungo-devel] [mungo commit] r109 - trunk/lib
svn-commit at lists.omniti.com
svn-commit at lists.omniti.com
Fri Feb 12 15:57:36 EST 2010
Author: bclapper
Date: 2010-02-12 15:57:36 -0500 (Fri, 12 Feb 2010)
New Revision: 109
Modified:
trunk/lib/Mungo.pm
Log:
specify unsafe characters to encode_entities because not doing so breaks utf-8
Modified: trunk/lib/Mungo.pm
===================================================================
--- trunk/lib/Mungo.pm 2010-01-27 00:59:18 UTC (rev 108)
+++ trunk/lib/Mungo.pm 2010-02-12 20:57:36 UTC (rev 109)
@@ -618,7 +618,7 @@
$string =~ s/
<%([~=]?)(.*?)%>
/
- ($1 eq '~') ? "print HTML::Entities::encode_entities($2);" :
+ ($1 eq '~') ? "print HTML::Entities::encode_entities($2,'<&>\"');" :
($1 eq '=') ?
"print $2;" : # This is <%= ... %>
"$2;" # This is <% ... %>
More information about the Mungo-devel
mailing list