Merge pull request #1054 from nextcloud/enh/no_double_slash

Do not add double slash to login flow url
This commit is contained in:
Roeland Jago Douma 2019-01-30 16:39:52 +01:00 committed by GitHub
commit bf81a473af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,10 @@ void WebViewPage::initializePage() {
url = "https://nextcloud.com/register";
} else {
url = _ocWizard->ocUrl();
url += "/index.php/login/flow";
if (!url.endsWith('/')) {
url += "/";
}
url += "index.php/login/flow";
}
qCInfo(lcWizardWebiewPage()) << "Url to auth at: " << url;
_webView->setUrl(QUrl(url));