KURL problem

Michael Brade brade at kde.org
Tue Sep 20 12:02:42 BST 2005


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.

Thanks,
-- 
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'
  °--web: http://www.kde.org/people/michaelb.html

KDE 3: The Next Generation in Desktop Experience
-------------- 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/20050920/d29c567f/attachment.sig>


More information about the kde-core-devel mailing list