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,9 +317,10 @@
{
    protected $tagname = 'input';
    protected $type = 'text';
    protected $allowed = array('type','name','value','size','tabindex',
   'autocomplete','checked','onchange','onclick','disabled','readonly',
   'spellcheck','results','maxlength','src','multiple');
    protected $allowed = array(
        'type','name','value','size','tabindex','autocapitalize',
        'autocomplete','checked','onchange','onclick','disabled','readonly',
        'spellcheck','results','maxlength','src','multiple','placeholder');
    /**
     * Object constructor
@@ -334,10 +335,6 @@
        if ($attrib['type']) {
            $this->type = $attrib['type'];
        }
        if ($attrib['newline']) {
            $this->newline = true;
        }
    }
@@ -381,11 +378,12 @@
 * @package HTML
 */
class html_hiddenfield extends html_inputfield
class html_hiddenfield extends html
{
    protected $tagname = 'input';
    protected $type = 'hidden';
    protected $fields_arr = array();
    protected $newline = true;
    protected $allowed = array('type','name','value','onchange','disabled','readonly');
    /**
     * Constructor
@@ -645,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();
        }
    }