Accept nc scheme in provider page
authorFelix Weilbach <felix.weilbach@nextcloud.com>
Fri, 10 Sep 2021 06:58:22 +0000 (08:58 +0200)
committerFelix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de>
Tue, 14 Sep 2021 09:01:18 +0000 (09:01 +0000)
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
src/gui/wizard/webview.cpp

index d9cd20922935bceec8c447a6f143f0856c3a6023..9d48397dacfa62da5885967c288b21f57c8d0321 100644 (file)
@@ -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;
     }