summaryrefslogtreecommitdiff
path: root/rt/html/Elements/CollectionAsTable
diff options
context:
space:
mode:
authorivan <ivan>2008-03-03 23:12:43 +0000
committerivan <ivan>2008-03-03 23:12:43 +0000
commit2b8d967812822d1aec85faa458d13f0172281139 (patch)
treebef98df624b339a1f0ba35f7711987b835d416f3 /rt/html/Elements/CollectionAsTable
parentc648976f0b7975f2328ebd7ba8c711fad0ca4195 (diff)
merge in rt 3.6.6. *gulp*!
Diffstat (limited to 'rt/html/Elements/CollectionAsTable')
-rw-r--r--rt/html/Elements/CollectionAsTable/Row5
1 files changed, 4 insertions, 1 deletions
diff --git a/rt/html/Elements/CollectionAsTable/Row b/rt/html/Elements/CollectionAsTable/Row
index 64ecef41c..d8492265e 100644
--- a/rt/html/Elements/CollectionAsTable/Row
+++ b/rt/html/Elements/CollectionAsTable/Row
@@ -55,6 +55,7 @@ $Warning => undef
</%ARGS>
<%PERL>
+use HTML::Entities;
$m->out('<tr class="' . ( $Warning ? 'warnline' : $i % 2 ? 'oddline' : 'evenline' ) . '" >' );
my $item;
foreach my $column (@Format) {
@@ -71,7 +72,9 @@ foreach my $column (@Format) {
next;
}
$item++;
- $m->out('<td class="collection-as-table" ');
+ my $class = $column->{class}
+ ? encode_entities($column->{class}, q{'"&<>}) : 'collection-as-table';
+ $m->out(qq{<td class="$class" });
$m->out( 'align="' . $column->{align} . '"' ) if ( $column->{align} );
$m->out( 'style="' . $column->{style} . '"' ) if ( $column->{style} );
$m->out('>');