[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Patch] Re: URI-encoding of '#'

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2006-02-23 20:47:54 CET

On Thu, 23 Feb 2006, Mathias Weinert wrote:

> Peter N. Lundblad wrote:
>
> > On Thu, 23 Feb 2006, Mathias Weinert wrote:
> >
> > > $ svn info http://anyhost/#
> > > svn: URL 'http://anyhost/#' is not properly URI-encoded
> > >
> > > As you can see the URI-encoding of '#' doesn't work. At least
> > > it doesn't work in my environment - Subversion 1.3.0 on cygwin.
> > > I also checked it under Windows and there the problem is also
> > > existing (in version 1.3.0 as well as in version 1.2.3).
> >
> > Since the # sign has a special meaning in a URI, we can't automatically
> > escape it there. The auto-escaping is meant as a convenience for
> > characters that don't have another meaning. Other characters, you will
> > need to excape by hand.
> >
>
> Hmm, I understand that the '#' has a special meaning in "standard"
> URLs but is there any situation where it has a special meaning
> while used as a Subversion path?
>
No, at least not in the path part, but since we're using "standard" URLs,
I think it would be a bad idea to try to be too smart and do unexpected
things. OK, you might say that not escaping might be more unexpected, but
even if we escape #, there are still special characters in the ASCII range
that need to be manually escaped.

Thanks,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 23 20:58:01 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.