From 1ca9ebf0badd598573caf22c842d748434e139aa Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 21 Feb 2024 10:59:03 +0100 Subject: [PATCH 1/2] Update hostname format in validate-input.json --- imageroot/actions/configure-module/validate-input.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imageroot/actions/configure-module/validate-input.json b/imageroot/actions/configure-module/validate-input.json index d19e577..06cfb23 100755 --- a/imageroot/actions/configure-module/validate-input.json +++ b/imageroot/actions/configure-module/validate-input.json @@ -26,7 +26,8 @@ "host": { "type": "string", "description": "Host name for the application, like 'roundcubemail.domain.org'", - "format": "idn-hostname" + "format": "hostname", + "pattern": "\\." }, "lets_encrypt": { "type": "boolean", From b0d9e066fe56f72eb6c3d5f41ff58405103e8d1e Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 21 Feb 2024 10:59:12 +0100 Subject: [PATCH 2/2] Add error messages for invalid host pattern and format --- ui/public/i18n/en/translation.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/public/i18n/en/translation.json b/ui/public/i18n/en/translation.json index 02f5f44..bce568a 100644 --- a/ui/public/i18n/en/translation.json +++ b/ui/public/i18n/en/translation.json @@ -42,7 +42,9 @@ "mail_server_is_not_valid": "This mail server cannot be used by Roundcube webmail", "upload_max_filesize_number_lte": "Must be less than 120 MB", "no_available_mail_domain_check_users": "Make sure the mail domain you intend to use has \"Add user addresses from user domain\" checkbox enabled", - "mail_module_misconfigured": "No mail domain available" + "mail_module_misconfigured": "No mail domain available", + "host_pattern": "Must be a valid fully qualified domain name", + "host_format": "Must be a valid fully qualified domain name" }, "about": { "title": "About"