Make it optional to define protected custom variables

fixes #7590
This commit is contained in:
Johannes Meyer 2014-11-07 15:05:08 +01:00
parent bb96316a7c
commit f1b6a82387
2 changed files with 5 additions and 2 deletions

View File

@ -55,7 +55,8 @@ class SecurityConfigForm extends ConfigForm
'text', 'text',
'protected_customvars', 'protected_customvars',
array( array(
'required' => true, 'allowEmpty' => true,
'value' => '*pw*,*pass*,community',
'label' => mt('monitoring', 'Protected Custom Variables'), 'label' => mt('monitoring', 'Protected Custom Variables'),
'description' => mt('monitoring', 'description' => mt('monitoring',
'Comma separated case insensitive list of protected custom variables.' 'Comma separated case insensitive list of protected custom variables.'

View File

@ -56,7 +56,9 @@ class SecurityStep extends Step
. '<tbody>' . '<tbody>'
. '<tr>' . '<tr>'
. '<td><strong>' . mt('monitoring', 'Protected Custom Variables') . '</strong></td>' . '<td><strong>' . mt('monitoring', 'Protected Custom Variables') . '</strong></td>'
. '<td>' . $this->data['securityConfig']['protected_customvars'] . '</td>' . '<td>' . ($this->data['securityConfig']['protected_customvars'] ? (
$this->data['securityConfig']['protected_customvars']
) : mt('monitoring', 'None', 'monitoring.protected_customvars')) . '</td>'
. '</tr>' . '</tr>'
. '</tbody>' . '</tbody>'
. '</table>'; . '</table>';