[Jifty-commit] r6058 - Template-Declare/lib/Template/Declare
Jifty commits
jifty-commit at lists.jifty.org
Mon Dec 1 23:17:51 EST 2008
Author: ruz
Date: Mon Dec 1 23:17:51 2008
New Revision: 6058
Modified:
Template-Declare/lib/Template/Declare/Buffer.pm
Log:
* stringify argument first in buffer::append as we can deal with an object
with overloaded stringification that plays with buffers
Modified: Template-Declare/lib/Template/Declare/Buffer.pm
==============================================================================
--- Template-Declare/lib/Template/Declare/Buffer.pm (original)
+++ Template-Declare/lib/Template/Declare/Buffer.pm Mon Dec 1 23:17:51 2008
@@ -8,7 +8,10 @@
sub append {
no warnings 'uninitialized';
- $_[0]->data( $_[0]->data . $_[1] );
+ # stringify first as it can be overloaded object
+ # that changes our buffer
+ my $append = "$_[1]";
+ $_[0]->data( $_[0]->data . $append );
};
sub clear {
More information about the Jifty-commit
mailing list