mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
Handle spaces in username properly in login flow
Fixes #279 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
dc993d3ebe
commit
9ec61a84ce
1 changed files with 7 additions and 0 deletions
|
@ -138,6 +138,13 @@ void WebViewPageUrlSchemeHandler::requestStarted(QWebEngineUrlRequestJob *reques
|
||||||
password = part.mid(9);
|
password = part.mid(9);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
user = QUrl::fromPercentEncoding(user.toUtf8());
|
||||||
|
password = QUrl::fromPercentEncoding(password.toUtf8());
|
||||||
|
|
||||||
|
user = user.replace(QChar('+'), QChar(' '));
|
||||||
|
password = password.replace(QChar('+'), QChar(' '));
|
||||||
|
|
||||||
if (!server.startsWith("http://") && !server.startsWith("https://")) {
|
if (!server.startsWith("http://") && !server.startsWith("https://")) {
|
||||||
server = "https://" + server;
|
server = "https://" + server;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue