[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KFM(client) Bug in KDE 1.1.1
From:       Waldo Bastian <bastian () suse ! de>
Date:       1999-08-04 7:55:57
[Download RAW message or body]

On Wed, 04 Aug 1999, Dawit Alemayehu wrote:
> On Tue, 03 Aug 1999, Markus Goetz wrote:
> > Hi all,
> > 
> > i have the following problem :
> > 
> > A program i wrote calls kfmclient with 'openURL' and an URL that is generated
> > dynamically and looks (e.g.) like
> > 'http://yp.icecast.org/index.html?search=german%20music'.
> 
> Ummm.  This is a query ; so shouldn't the URL actually read :
> 'http://yp.icecast.org/index.html?search=german+music;

Both are valid.
  
> > I call kfmclient with system("kfmcl....") and everything seems to work fine.
> > The typical small windows with the 'Trying to open http..' pops up (with the
> > right URL) and after a few seconds a new kfm window comes out, again with the
> > URL, but not decoded, %20 is again a ' ' !
> 
> Well somewhere along the line a KURL::decodeURL( ... ) is called before the
> location box is updated.  Note that although this is misleading/confusing, this
> does not affect kfm internally as the encoded URL is used, atleast as far as I
> can remember.

The whole concept of "decodeURL" is broken. You can't decode an URL
without breaking it up in the various parts. Take e.g.
<http://www.kde.org/path/some%3Ffile?search=german+music>

>  > What can i do that kfm understands the URL in the right way ?
> 
> See above.  If this is not the case, then I will take a look at it again. 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic