[Jifty-commit] r2494 - in Template-Declare: lib/Template/Declare

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Jan 15 15:56:31 EST 2007


Author: jesse
Date: Mon Jan 15 15:56:29 2007
New Revision: 2494

Modified:
   Template-Declare/   (props changed)
   Template-Declare/lib/Template/Declare/Tags.pm

Log:
 r20981 at hualien:  jesse | 2007-01-15 15:52:48 -0500
 * Remove code that had been abstracted to a function


Modified: Template-Declare/lib/Template/Declare/Tags.pm
==============================================================================
--- Template-Declare/lib/Template/Declare/Tags.pm	(original)
+++ Template-Declare/lib/Template/Declare/Tags.pm	Mon Jan 15 15:56:29 2007
@@ -181,15 +181,7 @@
             my $field = shift;
             my $val   = shift;
 
-            use bytes;
-            $val =~ s/&/&/g;
-            $val =~ s/</&lt;/g;
-            $val =~ s/>/&gt;/g;
-            $val =~ s/\(/&#40;/g;
-            $val =~ s/\)/&#41;/g;
-            $val =~ s/"/&#34;/g;
-            $val =~ s/'/&#39;/g;
-
+            $val = _escape_utf8($val);
             $buf .= qq[ $field="$val"];
 
             wantarray ? () : '';


More information about the Jifty-commit mailing list