KURL problem
Andras Mantia
amantia at kde.org
Tue Sep 27 12:01:51 BST 2005
On Tuesday 27 September 2005 13:39, Michael Brade wrote:
> And what happens with your patch in case of ftp://ya\@kde.org//? You
> don't want to get ftp://ya\@kde.org.
It happens the same as I would get for "ftp://ya\@kde.org/". I doubt
applications are analyzing the URL before requesting an adjustPath(-1).
make check fails, but for another case:
"kurltest: amantia.url() : checking 'http://?.foo' against expected
value 'http://xn--80a.foo'... KO !"
The attached kurltext.cpp addition proves it:
KURL ftpurl1("ftp://ftp.kde.org/");
ftpurl1.adjustPath(-1);
KURL ftpurl2("ftp://ftp.kde.org///");
ftpurl2.adjustPath(-1);
check("ajdustPath(-1)", ((ftpurl1.url() != ftpurl2.url())?"ko":"ok"),
"ok");
Andras
--
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050927/d6be67f0/attachment.sig>
More information about the kde-core-devel
mailing list