From 2b12990f19949fe5dcbb24b556a65629d70ee51c Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 22 Sep 2017 18:59:48 +0200 Subject: [PATCH] Httpcreds: Fix double slash in the Request App Password url Issue #6044 --- src/gui/creds/httpcredentialsgui.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/creds/httpcredentialsgui.cpp b/src/gui/creds/httpcredentialsgui.cpp index bc533db86..366cbe161 100644 --- a/src/gui/creds/httpcredentialsgui.cpp +++ b/src/gui/creds/httpcredentialsgui.cpp @@ -148,7 +148,10 @@ QString HttpCredentialsGui::requestAppPasswordText(const Account *account) return QString(); } + auto baseUrl = account->url().toString(); + if (baseUrl.endsWith('/')) + baseUrl.chop(1); return tr("Click here to request an app password from the web interface.") - .arg(account->url().toString() + path); + .arg(baseUrl + path); } } // namespace OCC -- 2.30.2