Fix check_url.
GitOrigin-RevId: 5d1323203cef7a8e74927daaa28fbdca364ffe32
This commit is contained in:
parent
91f79a41e7
commit
8826f2690d
@ -323,7 +323,7 @@ Result<string> 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();
|
||||
|
Reference in New Issue
Block a user