diff --git a/src/gui/UrlTools.cpp b/src/gui/UrlTools.cpp index 90c945132..917f2048c 100644 --- a/src/gui/UrlTools.cpp +++ b/src/gui/UrlTools.cpp @@ -171,8 +171,8 @@ bool UrlTools::isUrlValid(const QString& urlField, bool looseComparison) const url.remove(0, 1); url.remove(url.length() - 1, 1); } else { - // Do not allow URL with just wildcards, or double wildcards, or no separator (.) - if (url.length() == url.count("*") || url.contains("**") || url.contains("*.*") || !url.contains(".")) { + // Do not allow URL with just wildcards, or double wildcards + if (url.length() == url.count("*") || url.contains("**") || url.contains("*.*")) { return false; } diff --git a/tests/TestUrlTools.cpp b/tests/TestUrlTools.cpp index b514f6cc2..ae059d228 100644 --- a/tests/TestUrlTools.cpp +++ b/tests/TestUrlTools.cpp @@ -160,6 +160,7 @@ void TestUrlTools::testIsUrlValidWithLooseComparison() urls["https://example.*"] = false; urls["https://*.example.*"] = false; urls["https://example.c*"] = false; + urls["https://myowndomain:8000"] = true; QHashIterator i(urls); while (i.hasNext()) {