Index: CHANGELOG
===================================================================
--- CHANGELOG	(revision e189a6ca18fe43def249c78a0e89405012981de5)
+++ CHANGELOG	(revision e3e597e3b6c9ae10e5c7c1e5592726c71793cfe7)
@@ -1,4 +1,8 @@
 CHANGELOG RoundCube Webmail
 ---------------------------
+
+2008/07/14 (thomasb)
+----------
+- Re-enable autocomplete attribute for login form (#1485211)
 
 2008/06/30 (alec)
Index: program/include/html.php
===================================================================
--- program/include/html.php	(revision 46290afee202066d2510db1c02e86838da88545c)
+++ program/include/html.php	(revision e3e597e3b6c9ae10e5c7c1e5592726c71793cfe7)
@@ -30,5 +30,5 @@
     protected $tagname;
     protected $attrib = array();
-    protected $allowed;
+    protected $allowed = array();
     protected $content;
 
@@ -56,5 +56,5 @@
     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));
     }
 
@@ -249,4 +249,5 @@
     protected $tagname = 'input';
     protected $type = 'text';
+    protected $allowed = array('type','name','value','size','tabindex','autocomplete','checked');
 
     public function __construct($attrib = array())
@@ -416,5 +417,5 @@
 {
     protected $tagname = 'textarea';
-    protected $allowed_attrib = array('name','rows','cols','wrap','tabindex');
+    protected $allowed = array('name','rows','cols','wrap','tabindex');
 
     /**
@@ -446,5 +447,5 @@
         }
 
-        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));
     }
 }
Index: program/include/rcube_template.php
===================================================================
--- program/include/rcube_template.php	(revision c719f3c1e06c00fa4723f2f1298b3c94a1bec7e7)
+++ program/include/rcube_template.php	(revision e3e597e3b6c9ae10e5c7c1e5592726c71793cfe7)
@@ -909,6 +909,6 @@
         $_SESSION['temp'] = true;
 
-        $input_user   = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30, 'autocomplete' => 'off'));
-        $input_pass   = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd', 'size' => 30));
+        $input_user   = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30) + $attrib);
+        $input_pass   = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd', 'size' => 30) + $attrib);
         $input_action = new html_hiddenfield(array('name' => '_action', 'value' => 'login'));
         $input_host   = null;
@@ -927,5 +927,5 @@
             }
         }
-        else if (!strlen($default_host)) {
+        else if (empty($default_host)) {
             $input_host = new html_inputfield(array('name' => '_host', 'id' => 'rcmloginhost', 'size' => 30));
         }
@@ -938,5 +938,5 @@
 
         $table->add('title', html::label('rcmloginuser', Q(rcube_label('username'))));
-        $table->add(null, $input_user->show(get_input_value('_user', RCUVE_INPUT_POST)));
+        $table->add(null, $input_user->show(get_input_value('_user', RCUBE_INPUT_POST)));
 
         $table->add('title', html::label('rcmloginpwd', Q(rcube_label('password'))));
@@ -946,5 +946,5 @@
         if (is_object($input_host)) {
             $table->add('title', html::label('rcmloginhost', Q(rcube_label('server'))));
-            $table->add(null, $input_host->show(get_input_value('_host', RCUVE_INPUT_POST)));
+            $table->add(null, $input_host->show(get_input_value('_host', RCUBE_INPUT_POST)));
         }
 
Index: skins/default/templates/login.html
===================================================================
--- skins/default/templates/login.html	(revision 46bc52b56a3201fc3e1aa687eb99725d8e26b37a)
+++ skins/default/templates/login.html	(revision e3e597e3b6c9ae10e5c7c1e5592726c71793cfe7)
@@ -38,5 +38,5 @@
 
 <form name="form" action="./" method="post">
-<roundcube:object name="loginform" form="form" />
+<roundcube:object name="loginform" form="form" autocomplete="off" />
 
 <p style="text-align:center;"><input type="submit" class="button" value="<roundcube:label name='login' />" /></p>
