From: Felix Weilbach Date: Fri, 10 Sep 2021 06:58:22 +0000 (+0200) Subject: Accept nc scheme in provider page X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~18^2~229^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8370c9c1caca3c1e6cc10b8574ad6fecfc4dbfae;p=nextcloud-desktop.git Accept nc scheme in provider page Signed-off-by: Felix Weilbach --- diff --git a/src/gui/wizard/webview.cpp b/src/gui/wizard/webview.cpp index d9cd20922..9d48397da 100644 --- a/src/gui/wizard/webview.cpp +++ b/src/gui/wizard/webview.cpp @@ -223,7 +223,7 @@ bool WebEnginePage::acceptNavigationRequest(const QUrl &url, QWebEnginePage::Nav Q_UNUSED(type); Q_UNUSED(isMainFrame); - if (_enforceHttps && url.scheme() != QStringLiteral("https")) { + if (_enforceHttps && url.scheme() != QStringLiteral("https") && url.scheme() != QStringLiteral("nc")) { QMessageBox::warning(nullptr, "Security warning", "Can not follow non https link on a https website. This might be a security issue. Please contact your administrator"); return false; }