You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Mathias Weinert <ma...@gfa-net.de> on 2006/02/23 16:30:39 UTC

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

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?

Mathias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

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

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
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