mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Httpcreds: Fix double slash in the Request App Password url
Issue #6044
This commit is contained in:
parent
0cec6f08ca
commit
382cc444f0
1 changed files with 4 additions and 1 deletions
|
@ -148,7 +148,10 @@ QString HttpCredentialsGui::requestAppPasswordText(const Account *account)
|
||||||
return QString();
|
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.")
|
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
|
} // namespace OCC
|
||||||
|
|
Loading…
Reference in a new issue