From dc9ae231e58170fb34721e468ced6fa927920425 Mon Sep 17 00:00:00 2001 From: Yuriy Rusko Date: Wed, 26 Mar 2014 23:16:39 -0400 Subject: [ticket/12310] Don't autocomplete SMTP user/pass on install PHPBB3-12310 --- phpBB/install/index.php | 3 ++- phpBB/install/install_install.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'phpBB') diff --git a/phpBB/install/index.php b/phpBB/install/index.php index ad46e273c2..35e7c70e1d 100644 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -641,8 +641,9 @@ class module case 'password': $size = (int) $tpl_type[1]; $maxlength = (int) $tpl_type[2]; + $autocomplete = (isset($options['autocomplete']) && $options['autocomplete'] == 'off') ? ' autocomplete="off"' : ''; - $tpl = ''; + $tpl = ''; break; case 'textarea': diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 4618cff855..0a100ae71b 100644 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -2045,8 +2045,8 @@ class install_install extends module 'smtp_delivery' => array('lang' => 'USE_SMTP', 'type' => 'radio:yes_no', 'explain' => true), 'smtp_host' => array('lang' => 'SMTP_SERVER', 'type' => 'text:25:50', 'explain' => false), 'smtp_auth' => array('lang' => 'SMTP_AUTH_METHOD', 'type' => 'select', 'options' => '$this->module->mail_auth_select(\'{VALUE}\')', 'explain' => true), - 'smtp_user' => array('lang' => 'SMTP_USERNAME', 'type' => 'text:25:255', 'explain' => true), - 'smtp_pass' => array('lang' => 'SMTP_PASSWORD', 'type' => 'password:25:255', 'explain' => true), + 'smtp_user' => array('lang' => 'SMTP_USERNAME', 'type' => 'text:25:255', 'explain' => true, 'options' => array('autocomplete' => 'off')), + 'smtp_pass' => array('lang' => 'SMTP_PASSWORD', 'type' => 'password:25:255', 'explain' => true, 'options' => array('autocomplete' => 'off')), 'legend2' => 'SERVER_URL_SETTINGS', 'cookie_secure' => array('lang' => 'COOKIE_SECURE', 'type' => 'radio:enabled_disabled', 'explain' => true), -- cgit v1.2.1