forked from extern/egroupware
Do not print passwords to the page
This commit is contained in:
parent
d1f4be1882
commit
f5ccede031
@ -193,7 +193,15 @@
|
||||
break;
|
||||
case 'value':
|
||||
$newval = ereg_replace(' ','_',$newval);
|
||||
$t->set_var($value,$current_config[$newval]);
|
||||
/* Don't show passwords in the form */
|
||||
if(ereg('passwd',$value) || ereg('password',$value) || ereg('root_pw',$value))
|
||||
{
|
||||
$t->set_var($value,'');
|
||||
}
|
||||
else
|
||||
{
|
||||
$t->set_var($value,$current_config[$newval]);
|
||||
}
|
||||
break;
|
||||
case 'selected':
|
||||
$configs = array();
|
||||
|
Loading…
Reference in New Issue
Block a user