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:
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 5e231dc55..98d4969d0 100644
--- a/src/components/AccountForm.vue
+++ b/src/components/AccountForm.vue
@@ -386,9 +386,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(),
})
}
},