Commit 15296cb8 authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 365350 - password visible on screen / in URL when testing connection to Xchange calendar

Force to use a valid url

FIXED-IN: 5.3.0
BUG: 365350
parent 636801e9
......@@ -33,6 +33,9 @@ ConnectionTestJob::ConnectionTestJob(const QString &url, const QString &user, co
void ConnectionTestJob::start()
{
if (!mUrl.startsWith(QStringLiteral("https://"))) {
mUrl = QStringLiteral("https://") + mUrl;
}
const QUrl url(mUrl + QStringLiteral("/ajax/login?action=login&name=%1&password=%2").arg(mUser).arg(mPassword));
KJob *job = KIO::storedGet(url, KIO::Reload, KIO::HideProgressInfo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment