[Jifty-commit] r796 - jifty/trunk/lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Apr 2 11:18:25 EDT 2006


Author: autrijus
Date: Sun Apr  2 11:18:24 2006
New Revision: 796

Modified:
   jifty/trunk/lib/Jifty/Handler.pm

Log:
* avoid an empty substitution trap.

Modified: jifty/trunk/lib/Jifty/Handler.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Handler.pm	(original)
+++ jifty/trunk/lib/Jifty/Handler.pm	Sun Apr  2 11:18:24 2006
@@ -94,7 +94,7 @@
             # Force UTF-8 semantics on all our components by
             # prepending this block to all components as Mason
             # components defaults to parse the text as Latin-1
-            ${$_[0]} =~ s{}{<%INIT>use utf8;</%INIT>\n};
+            ${$_[0]} =~ s!^!<\%INIT>use utf8;</\%INIT>\n!;
         },
         data_dir =>  Jifty::Util->absolute_path( Jifty->config->framework('Web')->{'DataDir'} ),
         allow_globals => [


More information about the Jifty-commit mailing list