[Templates-svn] r1097 - trunk/lib/Template
svn@template-toolkit.org
svn@template-toolkit.org
Author: abw
Date: 2007-06-05 20:19:46 +0100 (Tue, 05 Jun 2007)
New Revision: 1097
Modified:
trunk/lib/Template/Provider.pm
Log:
tweaked Provider _decode_unicode() to return straight away if $string in undefined
Modified: trunk/lib/Template/Provider.pm
===================================================================
--- trunk/lib/Template/Provider.pm 2007-06-05 19:19:08 UTC (rev 1096)
+++ trunk/lib/Template/Provider.pm 2007-06-05 19:19:46 UTC (rev 1097)
@@ -1083,6 +1083,7 @@
sub _decode_unicode {
my $self = shift;
my $string = shift;
+ return undef unless defined $string;
use bytes;
require Encode;