Accept nc scheme in provider page

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
This commit is contained in:
Felix Weilbach 2021-09-10 08:58:22 +02:00 committed by Felix Weilbach (Rebase PR Action)
parent 5dabb3a36f
commit 8370c9c1ca

View 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;
}