Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAd5001 <mail@ad5001.eu>2022-03-03 02:12:49 +0300
committerAd5001 <mail@ad5001.eu>2022-03-03 19:43:13 +0300
commit4b5cdb49aed4c00a6e9b625b5d00494273a44ce3 (patch)
tree975ec988386423c2be12c92edbd251b96de13b0d /src
parentdb3f12f51ff15fca89aba3177423a2ed2ad3c5dd (diff)
1. Revert "Triming IMAP and SMTP hosts on setup."
This reverts commit db3f12f51ff15fca89aba3177423a2ed2ad3c5dd. 2. Moving triming logic to javascript. 3. Apply suggestions from code review Removing the side effect related to the text in the fields themselves being automatically trimmed. Signed-off-by: Ad5001 <mail@ad5001.eu>
Diffstat (limited to 'src')
-rw-r--r--src/components/AccountForm.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/AccountForm.vue b/src/components/AccountForm.vue
index 2fa0fc265..b96678270 100644
--- a/src/components/AccountForm.vue
+++ b/src/components/AccountForm.vue
@@ -332,9 +332,14 @@ export default {
...this.autoConfig,
})
} else {
+ // Removing additional whitespaces from manual configuration hosts
+ // In order to avoid issues when copy pasting imap & smtp hosts from providers documentations,
+ // which may have whitespaces.
return this.save({
autoDetect: false,
...this.manualConfig,
+ imapHost: this.manualConfig.imapHost.trim(),
+ smtpHost: this.manualConfig.smtpHost.trim(),
})
}
},