From e35fbea415e4a5739eaff38301fbcc7acc13c055 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 20 Sep 2022 12:26:12 +0200 Subject: [PATCH] Security: disable spellcheck everywhere by default due to Chrome/Edge sending data you enter to their servers. --- dev/Component/EmailAddresses.js | 2 +- dev/Component/TextArea.js | 1 - .../templates/SettingsChangePassword.html | 10 +++--- plugins/two-factor-auth/index.php | 4 +-- .../two-factor-auth/js/TwoFactorAuthLogin.js | 2 +- snappymail/v/0.0.0/app/templates/Index.html | 2 +- .../app/templates/Views/Admin/AdminLogin.html | 8 ++--- .../Views/Admin/AdminSettingsContacts.html | 14 ++++---- .../Views/Admin/AdminSettingsLogin.html | 4 +-- .../Admin/AdminSettingsPluginProperty.html | 10 +++--- .../Views/Admin/AdminSettingsSecurity.html | 14 ++++---- .../templates/Views/Admin/PopupsDomain.html | 28 ++++++++-------- .../templates/Views/Admin/PopupsPlugin.html | 2 +- .../templates/Views/Components/TextArea.html | 2 +- .../0.0.0/app/templates/Views/User/Login.html | 6 ++-- .../templates/Views/User/PopupsAccount.html | 6 ++-- .../Views/User/PopupsAdvancedSearch.html | 10 +++--- .../templates/Views/User/PopupsContacts.html | 32 +++++++++---------- .../templates/Views/User/PopupsFilter.html | 6 ++-- .../Views/User/PopupsFolderCreate.html | 4 +-- .../templates/Views/User/PopupsIdentity.html | 10 +++--- .../Views/User/PopupsOpenPgpGenerate.html | 8 ++--- .../Views/User/PopupsSieveScript.html | 6 ++-- .../Views/User/SettingsContacts.html | 6 ++-- 24 files changed, 97 insertions(+), 100 deletions(-) diff --git a/dev/Component/EmailAddresses.js b/dev/Component/EmailAddresses.js index 12eecd41c..e6257261f 100644 --- a/dev/Component/EmailAddresses.js +++ b/dev/Component/EmailAddresses.js @@ -18,7 +18,7 @@ export class EmailAddressesComponent { const self = this, input = createElement('input',{type:"text", list:datalist.id, - autocomplete:"off", autocorrect:"off", autocapitalize:"off", spellcheck:"false"}), + autocomplete:"off", autocorrect:"off", autocapitalize:"off"}), // In Chrome we have no access to dataTransfer.getData unless it's the 'drop' event // In Chrome Mobile dataTransfer.types.includes(contentType) fails, only text/plain is set validDropzone = () => dragAddress?.li.parentNode !== self.ul, diff --git a/dev/Component/TextArea.js b/dev/Component/TextArea.js index bc2ad55a9..f9eedffcb 100644 --- a/dev/Component/TextArea.js +++ b/dev/Component/TextArea.js @@ -8,6 +8,5 @@ export class TextAreaComponent extends AbstractInput { super(params); this.rows = params.rows || 5; - this.spellcheck = !!params.spellcheck; } } diff --git a/plugins/change-password/templates/SettingsChangePassword.html b/plugins/change-password/templates/SettingsChangePassword.html index ac0e62d20..83f9bd215 100644 --- a/plugins/change-password/templates/SettingsChangePassword.html +++ b/plugins/change-password/templates/SettingsChangePassword.html @@ -1,19 +1,19 @@