Fixed hostname validation message for ERI data sources

This commit is contained in:
Thorsten Sommer 2025-01-21 13:49:02 +01:00
parent 14caf550ec
commit b4981fc9dd
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -23,7 +23,7 @@ public sealed class DataSourceValidation
public string? ValidatingHostname(string hostname)
{
if(string.IsNullOrWhiteSpace(hostname))
return "Please enter a hostname, e.g., http://localhost:1234";
return "Please enter a hostname, e.g., http://localhost";
if(!hostname.StartsWith("http://", StringComparison.InvariantCultureIgnoreCase) && !hostname.StartsWith("https://", StringComparison.InvariantCultureIgnoreCase))
return "The hostname must start with either http:// or https://";