void WebViewPageUrlSchemeHandler::requestStarted(QWebEngineUrlRequestJob *request) {
QUrl url = request->requestUrl();
- QString path = url.path().mid(1);
+ QString path = url.path(0).mid(1); // get undecoded path
QStringList parts = path.split("&");
QString server;
}
}
- user = QUrl::fromPercentEncoding(user.toUtf8());
- password = QUrl::fromPercentEncoding(password.toUtf8());
+ qCDebug(lcWizardWebiew()) << "Got raw user from request path: " << user;
user = user.replace(QChar('+'), QChar(' '));
password = password.replace(QChar('+'), QChar(' '));
+ user = QUrl::fromPercentEncoding(user.toUtf8());
+ password = QUrl::fromPercentEncoding(password.toUtf8());
+
if (!server.startsWith("http://") && !server.startsWith("https://")) {
server = "https://" + server;
}