diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index df1efd0703..538f0a23de 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -2095,7 +2095,7 @@ function html_print_input_text_extended( 'list', ]; - $output = ' $attr_value) { // Check valid attribute. if (in_array($attribute, $valid_attrs) === false) { @@ -2581,6 +2581,10 @@ function html_print_input_number(array $settings):string $settings['maxlength'] = 255; } + if (isset($settings['autocomplete']) === false) { + $settings['autocomplete'] = 'off'; + } + foreach ($settings as $attribute => $attr_value) { // Check valid attribute. if (in_array($attribute, $valid_attrs) === false) { @@ -4357,7 +4361,7 @@ function html_print_input($data, $wrapper='div', $input_only=false) ((isset($data['function']) === true) ? $data['function'] : ''), ((isset($data['class']) === true) ? $data['class'] : ''), ((isset($data['onChange']) === true) ? $data['onChange'] : ''), - ((isset($data['autocomplete']) === true) ? $data['autocomplete'] : ''), + ((isset($data['autocomplete']) === true) ? $data['autocomplete'] : 'off'), ((isset($data['autofocus']) === true) ? $data['autofocus'] : false), ((isset($data['onKeyDown']) === true) ? $data['onKeyDown'] : ''), ((isset($data['form']) === true) ? $data['form'] : ''),