[Catalyst-commits] r7662 - in
CatalystX-CRUD/CatalystX-CRUD-View-Excel/trunk: .
lib/CatalystX/CRUD/View
karpet at dev.catalyst.perl.org
karpet at dev.catalyst.perl.org
Wed Apr 30 20:56:27 BST 2008
Author: karpet
Date: 2008-04-30 20:56:26 +0100 (Wed, 30 Apr 2008)
New Revision: 7662
Modified:
CatalystX-CRUD/CatalystX-CRUD-View-Excel/trunk/Changes
CatalystX-CRUD/CatalystX-CRUD-View-Excel/trunk/lib/CatalystX/CRUD/View/Excel.pm
Log:
html-escape all values by default
Modified: CatalystX-CRUD/CatalystX-CRUD-View-Excel/trunk/Changes
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-View-Excel/trunk/Changes 2008-04-30 15:31:43 UTC (rev 7661)
+++ CatalystX-CRUD/CatalystX-CRUD-View-Excel/trunk/Changes 2008-04-30 19:56:26 UTC (rev 7662)
@@ -10,5 +10,9 @@
0.03 21 Dec 2007
* fix INCLUDE -> INCLUDE_PATH bug (it was wrong in ETP docs)
+0.04 xxx
+ * escape all values with 'html' filter in default template
+
+
Modified: CatalystX-CRUD/CatalystX-CRUD-View-Excel/trunk/lib/CatalystX/CRUD/View/Excel.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-View-Excel/trunk/lib/CatalystX/CRUD/View/Excel.pm 2008-04-30 15:31:43 UTC (rev 7661)
+++ CatalystX-CRUD/CatalystX-CRUD-View-Excel/trunk/lib/CatalystX/CRUD/View/Excel.pm 2008-04-30 19:56:26 UTC (rev 7662)
@@ -5,7 +5,7 @@
use base qw( Catalyst::View::Excel::Template::Plus CatalystX::CRUD );
use Path::Class;
-our $VERSION = '0.03';
+our $VERSION = '0.04';
=head1 NAME
@@ -172,13 +172,13 @@
[% myfields = c.controller.field_names %]
<row>
[% FOR fn = myfields %]
- <bold><cell>[% fn %]</cell></bold>
+ <bold><cell>[% fn | html %]</cell></bold>
[% END %]
</row>
[% FOR r = results.results %]
<row>
[% FOR fn = myfields %]
- <cell>[% r.\$fn %]</cell>
+ <cell>[% r.\$fn | html %]</cell>
[% END %]
</row>
[% END %]
More information about the Catalyst-commits
mailing list