From 8826f2690d2abdbd2c7b57bee221f2999806b019 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 3 May 2020 15:27:26 +0300 Subject: [PATCH] Fix check_url. GitOrigin-RevId: 5d1323203cef7a8e74927daaa28fbdca364ffe32 --- td/telegram/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/misc.cpp b/td/telegram/misc.cpp index e6d9e944..d2a0abd0 100644 --- a/td/telegram/misc.cpp +++ b/td/telegram/misc.cpp @@ -323,7 +323,7 @@ Result check_url(Slice url) { return PSTRING() << (is_tg ? "tg" : "ton") << "://" << http_url.host_ << query; } - if (url.find('.') == string::npos) { + if (http_url.host_.find('.') == string::npos) { return Status::Error("Wrong HTTP URL"); } return http_url.get_url();