KUrl::prettyUrl()
Tony Murray
murraytony at gmail.com
Tue Dec 7 06:01:51 GMT 2010
In the KUrl::prettyUrl() function,
QUrl::toPercentEncoding<http://doc.trolltech.com/4.6/qurl.html#toPercentEncoding>()
is used on the username portion of the url.
http://api.kde.org/4.5-api/kdelibs-apidocs/kdecore/html/kurl_8cpp_source.html#l01067
This causes usernames like "domain\user" to be shown as "domain%5Cuser".
QUrl::userName() and QUrl::authority() both leave \ unencoded.
My question is why is this done this way? I think changing it may break
some things, but it just seams odd behavior for something that is labelled
to be used only for displaying to the user.
Thanks.
Tony Murray
-KRDC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20101207/f505b6ab/attachment.htm>
More information about the kde-core-devel
mailing list