Thomas Bruederli
2012-10-04 ef7a786b38d36374585be6b5800ce1862b40eb50
program/include/html.php
@@ -157,7 +157,7 @@
            $attr = array('src' => $attr);
        }
        return self::tag('img', $attr + array('alt' => ''), null, array_merge(self::$common_attrib,
       array('src','alt','width','height','border','usemap')));
           array('src','alt','width','height','border','usemap','onclick')));
    }
    /**
@@ -301,7 +301,7 @@
                $attrib_arr[] = $key . '="' . Q($value, 'strict', false) . '"';
            }
            else {
                $attrib_arr[] = $key . '="' . Q($value) . '"';
                $attrib_arr[] = $key . '="' . htmlspecialchars($value, ENT_COMPAT, RCMAIL_CHARSET) . '"';
            }
        }
        return count($attrib_arr) ? ' '.implode(' ', $attrib_arr) : '';
@@ -317,7 +317,8 @@
{
    protected $tagname = 'input';
    protected $type = 'text';
    protected $allowed = array('type','name','value','size','tabindex',
    protected $allowed = array(
        'type','name','value','size','tabindex','autocapitalize',
        'autocomplete','checked','onchange','onclick','disabled','readonly',
        'spellcheck','results','maxlength','src','multiple','placeholder');
@@ -642,9 +643,9 @@
        $cell->content = $cont;
        $this->rows[$this->rowindex]->cells[$this->colindex] = $cell;
        $this->colindex++;
        $this->colindex += max(1, intval($attr['colspan']));
        if ($this->attrib['cols'] && $this->colindex == $this->attrib['cols']) {
        if ($this->attrib['cols'] && $this->colindex >= $this->attrib['cols']) {
            $this->add_row();
        }
    }