From kde-core-devel Mon Sep 26 20:14:32 2005 From: Michael Brade Date: Mon, 26 Sep 2005 20:14:32 +0000 To: kde-core-devel Subject: Re: KURL problem Message-Id: <200509262214.35391.brade () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=112776560822700 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1323241.RL8CxDBIJQ" --nextPart1323241.RL8CxDBIJQ Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 20 September 2005 13:02, Michael Brade wrote: > Hi, > > when entering invalid urls like f:a// in KFileDialog KDirListerCache > crashes. Reason is the double slash (or triple slash): KURL::adjustPath(-= 1) > removes the last one but is called in KDirListerCache::slotResult() again, > removing the second last one and thus producing a url not known to > KDirListerCache. We call KURL::cleanPath() in listDir() to supposedly kill > consecutive slashes but that doesn't seem to work in this case. > > What do you suggest? Can we please fix KURL? If adjustPath() removes *one* > slash, then cleanPath() should get rid of all of them but one. Or neither > of them should change the url. Hm, what's up? I've been in Italy with adsl that I didn't get to work under= =20 Linux so I couldn't go on with this. Please tell me if it's possible to fix= =20 this, I don't know KURL well enough yet. Cheers, =2D-=20 Michael Brade; KDE Developer, Student of Computer Science |-mail: echo brade !#|tr -d "c oh"|s\e\d 's/e/\@/2;s/$/.org/;s/bra/k/2' =B0--web: http://www.kde.org/people/michaelb.html KDE 3: The Next Generation in Desktop Experience --nextPart1323241.RL8CxDBIJQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDOFardK2tAWD5bo0RApPqAKDIjx5xOaHczZH0uhaz0y6yhZhHBACg8eFG vKrAn51GnIxrTACJiSRR1RM= =3WIm -----END PGP SIGNATURE----- --nextPart1323241.RL8CxDBIJQ--