1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/sec-184] Do not output config passwords to the HTML page

SECURITY-184
This commit is contained in:
Joas Schilling
2015-06-04 14:06:35 +02:00
parent db3782e491
commit 6ca3a30576
2 changed files with 14 additions and 2 deletions

View File

@@ -245,8 +245,13 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
switch ($tpl_type[0])
{
case 'text':
case 'password':
if ($new[$config_key] !== '')
{
// replace passwords with asterixes
$new[$config_key] = '********';
}
case 'text':
case 'url':
case 'email':
case 'color':