summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/html.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-14 17:56:22 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-14 17:56:22 +0000
commit6e60767d24eb5ec254138a5251723d414b81e9be (patch)
tree6b36efa745bb46946e97e576adc3cf5eb96d6ae8 /roundcubemail/program/include/html.php
parentca6257eb8e9f3b629fc0ef4942335ce196f9ab53 (diff)
Re-enable autocomplete attribute for login form (#1485211)
git-svn-id: https://svn.roundcube.net/trunk@1589 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/html.php')
-rw-r--r--roundcubemail/program/include/html.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/roundcubemail/program/include/html.php b/roundcubemail/program/include/html.php
index aa9d758f2..6a8892510 100644
--- a/roundcubemail/program/include/html.php
+++ b/roundcubemail/program/include/html.php
@@ -29,7 +29,7 @@ class html
{
protected $tagname;
protected $attrib = array();
- protected $allowed;
+ protected $allowed = array();
protected $content;
public static $common_attrib = array('id','class','style','title','align');
@@ -55,7 +55,7 @@ class html
*/
public function show()
{
- return self::tag($this->tagname, $this->attrib, $this->content, $this->allowed);
+ return self::tag($this->tagname, $this->attrib, $this->content, array_merge(self::$common_attrib, $this->allowed));
}
/****** STATIC METHODS *******/
@@ -248,6 +248,7 @@ class html_inputfield extends html
{
protected $tagname = 'input';
protected $type = 'text';
+ protected $allowed = array('type','name','value','size','tabindex','autocomplete','checked');
public function __construct($attrib = array())
{
@@ -415,7 +416,7 @@ class html_checkbox extends html_inputfield
class html_textarea extends html
{
protected $tagname = 'textarea';
- protected $allowed_attrib = array('name','rows','cols','wrap','tabindex');
+ protected $allowed = array('name','rows','cols','wrap','tabindex');
/**
* Get HTML code for this object
@@ -445,7 +446,7 @@ class html_textarea extends html
$value = Q($value, 'strict', false);
}
- return self::tag($this->tagname, $this->attrib, $value, array_merge(self::$common_attrib, $this->allowed_attrib));
+ return self::tag($this->tagname, $this->attrib, $value, array_merge(self::$common_attrib, $this->allowed));
}
}