[Jifty-commit] r4658 - in jifty/trunk: lib/Jifty/View/Mason

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Dec 9 00:14:42 EST 2007


Author: jesse
Date: Sun Dec  9 00:14:41 2007
New Revision: 4658

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/View/Mason/Handler.pm

Log:
 r72836 at pinglin:  jesse | 2007-12-09 00:14:39 -0500
 * nope - I'm wrong. bad benchmarking made me believe that the thing I am reverting was faster


Modified: jifty/trunk/lib/Jifty/View/Mason/Handler.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Mason/Handler.pm	(original)
+++ jifty/trunk/lib/Jifty/View/Mason/Handler.pm	Sun Dec  9 00:14:41 2007
@@ -127,13 +127,13 @@
 sub escape_utf8 {
     my $ref = shift;
     no warnings 'uninitialized';
-    $$ref =~ s/&/&/gs;
-    $$ref =~ s/</&lt;/gs;
-    $$ref =~ s/>/&gt;/gs;
-    $$ref =~ s/\(/&#40;/gs;
-    $$ref =~ s/\)/&#41;/gs;
-    $$ref =~ s/"/&#34;/gs;
-    $$ref =~ s/'/&#39;/gs;
+    $$ref =~ s/&/&#38;/g;
+    $$ref =~ s/</&lt;/g;
+    $$ref =~ s/>/&gt;/g;
+    $$ref =~ s/\(/&#40;/g;
+    $$ref =~ s/\)/&#41;/g;
+    $$ref =~ s/"/&#34;/g;
+    $$ref =~ s/'/&#39;/g;
 }
 
 =head2 escape_uri SCALARREF


More information about the Jifty-commit mailing list