mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Accept nc scheme in provider page
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
This commit is contained in:
parent
5dabb3a36f
commit
8370c9c1ca
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue