summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-06-15 11:43:01 +0000
committeralecpl <alec@alec.pl>2011-06-15 11:43:01 +0000
commit3f3ec14ed011ef1df326035d450a451801947f08 (patch)
tree7969a62f877b6d8befd080c94ad2a5f2bec0cc99 /program/include
parentfeac485000ada0ff9de9b1c6bcd2e4d8ab75b2f1 (diff)
- Force allowed attributes on table rows
Diffstat (limited to 'program/include')
-rw-r--r--program/include/html.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/html.php b/program/include/html.php
index b376d8a88..d09727898 100644
--- a/program/include/html.php
+++ b/program/include/html.php
@@ -713,7 +713,7 @@ class html_table extends html
foreach ($this->header as $c => $col) {
$rowcontent .= self::tag('td', $col->attrib, $col->content);
}
- $thead = self::tag('thead', null, self::tag('tr', null, $rowcontent));
+ $thead = self::tag('thead', null, self::tag('tr', null, $rowcontent, parent::$common_attrib));
}
foreach ($this->rows as $r => $row) {
@@ -723,7 +723,7 @@ class html_table extends html
}
if ($r < $this->rowindex || count($row->cells)) {
- $tbody .= self::tag('tr', $row->attrib, $rowcontent);
+ $tbody .= self::tag('tr', $row->attrib, $rowcontent, parent::$common_attrib);
}
}