[jcifs] Re: SMB URL encoding/decoding

Michael B Allen mballen at erols.com
Sun Feb 24 14:01:40 EST 2002


On Sat, 23 Feb 2002 20:34:43 -0600
"Christopher R. Hertel" <crh at ubiqx.org> wrote:
> 
> I think you are both right to some extent here.  Generally speaking an '@'
> char is in the <reserved> set and should typically by escaped.  However...
> 
>       net_path      = "//" authority [ abs_path ]
>       abs_path      = "/"  path_segments
>       rel_path      = rel_segment [ abs_path ]
> 
>       path          = [ abs_path | opaque_part ]
>       path_segments = segment *( "/" segment )
>       segment       = *pchar *( ";" param )
>       param         = *pchar
>       pchar         = unreserved | escaped |
>                       ":" | "@" | "&" | "=" | "+" | "$" | ","
> 
> According to all that mess, the "@" is a legal pchar, and path strings are
> made up of pchars.  So... Yes, the "@" may be used unescaped in a path.

Ok, well then we're doing this all wrong. I want to know how the author
of this grammer defines "authority" and how to traverse all the characters
that might apear in the the password.

Mike

-- 
May The Source be with you.




More information about the jcifs mailing list