sitter added a comment.
I think ... since this gets put into the desktop file via `toDisplayString` and `toDisplayString` has the behavior that > With the default options, the resulting QString can be passed back to a QUrl later on, but any password that was present initially will be lost. what QUrl does is probably accurate. In that an empty QString is not a null QString, so if the goal is to reconstruct the same QUrl out of the string then encoding the empty username like that is reasonable. I've had a quick grep through rfc2396 and from a spec POV `@host == host` though. REPOSITORY R119 Plasma Desktop BRANCH master REVISION DETAIL https://phabricator.kde.org/D16275 To: sitter, broulik Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart