data urls misinterpreted as directories

David Faure faure at kde.org
Mon Mar 22 16:43:11 GMT 2004


On Monday 22 March 2004 14:32, Leo Savernik wrote:
> Hello,
> 
> I have noticed that konqueror cannot handle a data url like:
> 
> data:text/html,http://www.invalid/
> 
> It should simply return an html document, that contains nothing but
> 
> http://www.invalid/
> 
> However, konqueror loads the icon view and pops up a dialog saying:
> "Listing folders is not supported by this protocol".

kparts: BrowserRun::scanfile data:text/html,http://www.invalid/
kparts: Scanfile: MIME TYPE is inode/directory

This is probably due to the trailing slash.
Please add this to data.protocol:

defaultMimetype=application/octet-stream
determineMimetypeFromExtension=false
 
> Is this a KURL related problem?
No, see the test I added to kurltest.cpp

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list