aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGrigorii K. Shartsev <me@shgk.me>2023-10-19 12:04:20 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-10-20 00:35:51 +0200
commit2d6cd78c3299fe343637f08d780ecb2646b33172 (patch)
tree2a5f99b9c251d6511a72deaf07b2b0303a3e2e13 /core
parenta6c450b481e439e23be166c84c6fcda45a6a2ebb (diff)
downloadnextcloud-server-2d6cd78c3299fe343637f08d780ecb2646b33172.tar.gz
nextcloud-server-2d6cd78c3299fe343637f08d780ecb2646b33172.zip
fix: replace non-standard autocorrect with spellcheck attribute
`autocorrect` was actual for Safari long time ago when Safari didn't fully supported HTML 5 spellcheck. Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Diffstat (limited to 'core')
-rw-r--r--core/src/components/login/UpdatePassword.vue2
-rw-r--r--core/templates/installation.php16
-rw-r--r--core/templates/publicshareauth.php2
3 files changed, 10 insertions, 10 deletions
diff --git a/core/src/components/login/UpdatePassword.vue b/core/src/components/login/UpdatePassword.vue
index 36a63a6254a..e281ad7ffc7 100644
--- a/core/src/components/login/UpdatePassword.vue
+++ b/core/src/components/login/UpdatePassword.vue
@@ -31,7 +31,7 @@
name="password"
autocomplete="new-password"
autocapitalize="none"
- autocorrect="off"
+ spellcheck="false"
required
:placeholder="t('core', 'New password')">
</p>
diff --git a/core/templates/installation.php b/core/templates/installation.php
index 2affefebead..b5487d7b985 100644
--- a/core/templates/installation.php
+++ b/core/templates/installation.php
@@ -38,13 +38,13 @@ script('core', 'install');
<label for="adminlogin"><?php p($l->t('Username')); ?></label>
<input type="text" name="adminlogin" id="adminlogin"
value="<?php p($_['adminlogin']); ?>"
- autocomplete="off" autocapitalize="none" autocorrect="off" autofocus required>
+ autocomplete="off" autocapitalize="none" spellcheck="false" autofocus required>
</p>
<p class="groupbottom">
<label for="adminpass"><?php p($l->t('Password')); ?></label>
<input type="password" name="adminpass" data-typetoggle="#show" id="adminpass"
value="<?php p($_['adminpass']); ?>"
- autocomplete="off" autocapitalize="none" autocorrect="off" required>
+ autocomplete="off" autocapitalize="none" spellcheck="false" required>
<button id="show" class="toggle-password" aria-label="<?php p($l->t('Show password')); ?>">
<img src="<?php print_unescaped(image_path('', 'actions/toggle.svg')); ?>" alt="<?php p($l->t('Toggle password visibility')); ?>">
</button>
@@ -64,7 +64,7 @@ script('core', 'install');
<input type="text" name="directory" id="directory"
placeholder="<?php p(OC::$SERVERROOT.'/data'); ?>"
value="<?php p($_['directory']); ?>"
- autocomplete="off" autocapitalize="none" autocorrect="off">
+ autocomplete="off" autocapitalize="none" spellcheck="false">
</div>
</fieldset>
<?php endif; ?>
@@ -103,13 +103,13 @@ script('core', 'install');
<label for="dbuser"><?php p($l->t('Database user')); ?></label>
<input type="text" name="dbuser" id="dbuser"
value="<?php p($_['dbuser']); ?>"
- autocomplete="off" autocapitalize="none" autocorrect="off">
+ autocomplete="off" autocapitalize="none" spellcheck="false">
</p>
<p class="groupmiddle">
<label for="dbpass"><?php p($l->t('Database password')); ?></label>
<input type="password" name="dbpass" id="dbpass"
value="<?php p($_['dbpass']); ?>"
- autocomplete="off" autocapitalize="none" autocorrect="off">
+ autocomplete="off" autocapitalize="none" spellcheck="false">
<button id="show" class="toggle-password" aria-label="<?php p($l->t('Show password')); ?>">
<img src="<?php print_unescaped(image_path('', 'actions/toggle.svg')); ?>" alt="<?php p($l->t('Toggle password visibility')); ?>">
</button>
@@ -118,7 +118,7 @@ script('core', 'install');
<label for="dbname"><?php p($l->t('Database name')); ?></label>
<input type="text" name="dbname" id="dbname"
value="<?php p($_['dbname']); ?>"
- autocomplete="off" autocapitalize="none" autocorrect="off"
+ autocomplete="off" autocapitalize="none" spellcheck="false"
pattern="[0-9a-zA-Z$_-]+">
</p>
<?php if ($_['hasOracle']): ?>
@@ -127,7 +127,7 @@ script('core', 'install');
<label for="dbtablespace" class="infield"><?php p($l->t('Database tablespace')); ?></label>
<input type="text" name="dbtablespace" id="dbtablespace"
value="<?php p($_['dbtablespace']); ?>"
- autocomplete="off" autocapitalize="none" autocorrect="off">
+ autocomplete="off" autocapitalize="none" spellcheck="false">
</p>
</div>
<?php endif; ?>
@@ -135,7 +135,7 @@ script('core', 'install');
<label for="dbhost"><?php p($l->t('Database host')); ?></label>
<input type="text" name="dbhost" id="dbhost"
value="<?php p($_['dbhost']); ?>"
- autocomplete="off" autocapitalize="none" autocorrect="off">
+ autocomplete="off" autocapitalize="none" spellcheck="false">
</p>
<p class="info">
<?php p($l->t('Please specify the port number along with the host name (e.g., localhost:5432).')); ?>
diff --git a/core/templates/publicshareauth.php b/core/templates/publicshareauth.php
index 516795852b2..c3089a2e143 100644
--- a/core/templates/publicshareauth.php
+++ b/core/templates/publicshareauth.php
@@ -25,7 +25,7 @@
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
<input type="password" name="password" id="password"
placeholder="<?php p($l->t('Password')); ?>" value=""
- autocomplete="new-password" autocapitalize="off" autocorrect="off"
+ autocomplete="new-password" autocapitalize="off" spellcheck="false"
autofocus />
<input type="hidden" name="sharingToken" value="<?php p($_['share']->getToken()) ?>" id="sharingToken">
<input type="hidden" name="sharingType" value="<?php p($_['share']->getShareType()) ?>" id="sharingType">