Changeset e3e597e in github
- Timestamp:
- Jul 14, 2008 1:56:22 PM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 5b3dd41
- Parents:
- 4185fa6
- Files:
-
- 4 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/html.php (modified) (5 diffs)
-
program/include/rcube_template.php (modified) (4 diffs)
-
skins/default/templates/login.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
re189a6c re3e597e 1 1 CHANGELOG RoundCube Webmail 2 2 --------------------------- 3 4 2008/07/14 (thomasb) 5 ---------- 6 - Re-enable autocomplete attribute for login form (#1485211) 3 7 4 8 2008/06/30 (alec) -
program/include/html.php
r46290af re3e597e 30 30 protected $tagname; 31 31 protected $attrib = array(); 32 protected $allowed ;32 protected $allowed = array(); 33 33 protected $content; 34 34 … … 56 56 public function show() 57 57 { 58 return self::tag($this->tagname, $this->attrib, $this->content, $this->allowed);58 return self::tag($this->tagname, $this->attrib, $this->content, array_merge(self::$common_attrib, $this->allowed)); 59 59 } 60 60 … … 249 249 protected $tagname = 'input'; 250 250 protected $type = 'text'; 251 protected $allowed = array('type','name','value','size','tabindex','autocomplete','checked'); 251 252 252 253 public function __construct($attrib = array()) … … 416 417 { 417 418 protected $tagname = 'textarea'; 418 protected $allowed _attrib= array('name','rows','cols','wrap','tabindex');419 protected $allowed = array('name','rows','cols','wrap','tabindex'); 419 420 420 421 /** … … 446 447 } 447 448 448 return self::tag($this->tagname, $this->attrib, $value, array_merge(self::$common_attrib, $this->allowed _attrib));449 return self::tag($this->tagname, $this->attrib, $value, array_merge(self::$common_attrib, $this->allowed)); 449 450 } 450 451 } -
program/include/rcube_template.php
rc719f3c re3e597e 909 909 $_SESSION['temp'] = true; 910 910 911 $input_user = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30 , 'autocomplete' => 'off'));912 $input_pass = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd', 'size' => 30) );911 $input_user = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30) + $attrib); 912 $input_pass = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd', 'size' => 30) + $attrib); 913 913 $input_action = new html_hiddenfield(array('name' => '_action', 'value' => 'login')); 914 914 $input_host = null; … … 927 927 } 928 928 } 929 else if ( !strlen($default_host)) {929 else if (empty($default_host)) { 930 930 $input_host = new html_inputfield(array('name' => '_host', 'id' => 'rcmloginhost', 'size' => 30)); 931 931 } … … 938 938 939 939 $table->add('title', html::label('rcmloginuser', Q(rcube_label('username')))); 940 $table->add(null, $input_user->show(get_input_value('_user', RCU VE_INPUT_POST)));940 $table->add(null, $input_user->show(get_input_value('_user', RCUBE_INPUT_POST))); 941 941 942 942 $table->add('title', html::label('rcmloginpwd', Q(rcube_label('password')))); … … 946 946 if (is_object($input_host)) { 947 947 $table->add('title', html::label('rcmloginhost', Q(rcube_label('server')))); 948 $table->add(null, $input_host->show(get_input_value('_host', RCU VE_INPUT_POST)));948 $table->add(null, $input_host->show(get_input_value('_host', RCUBE_INPUT_POST))); 949 949 } 950 950 -
skins/default/templates/login.html
r46bc52b re3e597e 38 38 39 39 <form name="form" action="./" method="post"> 40 <roundcube:object name="loginform" form="form" />40 <roundcube:object name="loginform" form="form" autocomplete="off" /> 41 41 42 42 <p style="text-align:center;"><input type="submit" class="button" value="<roundcube:label name='login' />" /></p>
Note: See TracChangeset
for help on using the changeset viewer.
