Httpcreds: Fix double slash in the Request App Password url

Issue #6044
This commit is contained in:
Olivier Goffart 2017-09-22 18:59:48 +02:00 committed by Olivier Goffart
parent 0cec6f08ca
commit 382cc444f0

View file

@ -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("<a href=\"%1\">Click here</a> to request an app password from the web interface.")
.arg(account->url().toString() + path);
.arg(baseUrl + path);
}
} // namespace OCC