diff --git a/tdutils/td/utils/HttpUrl.cpp b/tdutils/td/utils/HttpUrl.cpp index 9a0cdc8b..5663045d 100644 --- a/tdutils/td/utils/HttpUrl.cpp +++ b/tdutils/td/utils/HttpUrl.cpp @@ -95,6 +95,9 @@ Result parse_url(MutableSlice url, HttpUrl::Protocol default_protocol) if (host.empty()) { return Status::Error("URL host is empty"); } + if (host == ".") { + return Status::Error("Host is invalid"); + } int specified_port = port; if (port == 0) {