summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-14 15:10:05 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-14 15:10:05 +0200
commitb8dc3e0e61311fe03f21761fd7de1ca80d10c990 (patch)
tree0125a3f783140590650bf9ef73eec8172fd3dca3 /program
parent2922b727e81ca25717f48da4baff3e74594821b0 (diff)
Disable autocapitalization in login form on iPad/iPhone (#1488609)
Diffstat (limited to 'program')
-rw-r--r--program/include/html.php2
-rw-r--r--program/include/rcube_output_html.php3
2 files changed, 4 insertions, 1 deletions
diff --git a/program/include/html.php b/program/include/html.php
index b42da1d7f..6d177e16d 100644
--- a/program/include/html.php
+++ b/program/include/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',
+ 'type','name','value','size','tabindex','autocapitalize',
'autocomplete','checked','onchange','onclick','disabled','readonly',
'spellcheck','results','maxlength','src','multiple','placeholder',
);
diff --git a/program/include/rcube_output_html.php b/program/include/rcube_output_html.php
index 30512d227..0a8f0e364 100644
--- a/program/include/rcube_output_html.php
+++ b/program/include/rcube_output_html.php
@@ -1378,6 +1378,9 @@ class rcube_output_html extends rcube_output
if (empty($url) && !preg_match('/_(task|action)=logout/', $_SERVER['QUERY_STRING']))
$url = $_SERVER['QUERY_STRING'];
+ // Disable autocapitalization on iPad/iPhone (#1488609)
+ $attrib['autocapitalize'] = 'off';
+
// set atocomplete attribute
$user_attrib = $autocomplete > 0 ? array() : array('autocomplete' => 'off');
$host_attrib = $autocomplete > 0 ? array() : array('autocomplete' => 'off');