From ec031a35f1147a42c82642d7821a93f58cf8f1a7 Mon Sep 17 00:00:00 2001 From: Dennis1993 Date: Sun, 21 Jul 2013 19:51:38 +0200 Subject: Update html.php added required attribute to allowed list for input fields --- program/lib/Roundcube/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') diff --git a/program/lib/Roundcube/html.php b/program/lib/Roundcube/html.php index 3e6e47a56..a36711281 100644 --- a/program/lib/Roundcube/html.php +++ b/program/lib/Roundcube/html.php @@ -358,7 +358,7 @@ class html_inputfield extends html protected $tagname = 'input'; protected $type = 'text'; protected $allowed = array( - 'type','name','value','size','tabindex','autocapitalize', + 'type','name','value','size','tabindex','autocapitalize','required', 'autocomplete','checked','onchange','onclick','disabled','readonly', 'spellcheck','results','maxlength','src','multiple','accept', 'placeholder','autofocus', -- cgit v1.2.3 From 8df6bb9b1f6a21f283afc95214036dc2698799d4 Mon Sep 17 00:00:00 2001 From: Dennis1993 Date: Sun, 21 Jul 2013 20:37:36 +0200 Subject: Update rcmail_output_html.php added required Attribute to Login fields --- program/include/rcmail_output_html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program') diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index 998779509..a2ec29ca3 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -1531,9 +1531,9 @@ class rcmail_output_html extends rcmail_output $input_action = new html_hiddenfield(array('name' => '_action', 'value' => 'login')); $input_tzone = new html_hiddenfield(array('name' => '_timezone', 'id' => 'rcmlogintz', 'value' => '_default_')); $input_url = new html_hiddenfield(array('name' => '_url', 'id' => 'rcmloginurl', 'value' => $url)); - $input_user = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser') + $input_user = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'required' => 'required') + $attrib + $user_attrib); - $input_pass = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd') + $input_pass = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd', 'required' => 'required') + $attrib + $pass_attrib); $input_host = null; -- cgit v1.2.3 From 7d7d1437dd042d306150f9b15a3f97b0ad90ae66 Mon Sep 17 00:00:00 2001 From: Dennis1993 Date: Tue, 23 Jul 2013 12:45:24 +0200 Subject: Update func.inc added missing ID for label --- program/steps/settings/func.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index dbc9b3ce2..f6ea79ec6 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -546,7 +546,7 @@ function rcmail_user_prefs($current = null) $blocks['main']['options']['default_charset'] = array( 'title' => html::label($field_id, Q(rcube_label('defaultcharset'))), 'content' => $RCMAIL->output->charset_selector(array( - 'name' => '_default_charset', 'selected' => $config['default_charset'] + 'id' => $field_id, 'name' => '_default_charset', 'selected' => $config['default_charset'] ))); } -- cgit v1.2.3