diff --git a/Telegram/SourceFiles/passport/passport_form_controller.cpp b/Telegram/SourceFiles/passport/passport_form_controller.cpp index b7bc842072..6f5fd49165 100644 --- a/Telegram/SourceFiles/passport/passport_form_controller.cpp +++ b/Telegram/SourceFiles/passport/passport_form_controller.cpp @@ -233,9 +233,10 @@ QString SpecialScanCredentialsKey(FileType type) { QString ValidateUrl(const QString &url) { const auto result = qthelp::validate_url(url); - return result.startsWith("tg://", Qt::CaseInsensitive) - ? QString() - : result; + return (result.startsWith("http://", Qt::CaseInsensitive) + || result.startsWith("https://", Qt::CaseInsensitive)) + ? result + : QString(); } auto ParseConfig(const QByteArray &json) { diff --git a/Telegram/lib_base b/Telegram/lib_base index ca4503b307..fa02c719d1 160000 --- a/Telegram/lib_base +++ b/Telegram/lib_base @@ -1 +1 @@ -Subproject commit ca4503b3075fcaed5719b6ff1f40e40d14d08d95 +Subproject commit fa02c719d19bc647bcde4ba172b72d05bacb6a79