Re: url-encoding for http addresses



Alexander Larsson <alexl redhat com> wrote:
> On Mon, 2004-12-06 at 20:38 -0500, Walter Landry wrote:
> > Hello,
> > 
> > I just upgraded gnome-vfs2 on my Debian testing machine from 2.6.2 to
> > 2.8.3, and it seems that the default interpretation of http uri's has
> > changed.  In 2.6, gnome-vfs2 breaks if you don't url-encode any http
> > uri's you give it.  In 2.8, it breaks if you do.
> > 
> > First of all, is this change documented anywhere?  Second, is there a
> > simple way to check for versions so that I can write code that will
> > work with both the old and new conventions?
> 
> Hmm. This sounds bad. You mean that passing in a string containing "%20"
> breaks, but one with a space in doesn't?

With 2.8, correct.

> That seems wrong, the gnome-vfs semantics should be that uris always
> have to be escaped.

But then you have to have special code in your application to escape
only http uri's.  You might as well let gnome-vfs do it for itself.

Walter Landry
wlandry ucsd edu



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]