[jcifs] Re: SMB URL encoding/decoding

James Nord teilo at teilo.net
Mon Feb 25 01:41:21 EST 2002


Christopher R. Hertel wrote:

>The problem with path components (and I think that this is a problem in
>the RFC) is that the permitted character set is different than in other
>parts of the URL.  Eg:
>
>      pchar         = unreserved | escaped |
>                      ":" | "@" | "&" | "=" | "+" | "$" | ","
>vs.
>
>      userinfo      = *( unreserved | escaped |
>                      ";" | ":" | "&" | "=" | "+" | "$" | "," )
>
>
>So the problem is that you need to escape a ';' if you want to use it in a
>path, but not if you use it in <userinfo>, and you have to escape an '@' if
>you want to use it in <userinfo> but not in the path.
>
And then the domain bit falls over as it is permited to have many ;'s in 
there :-(

/James





More information about the jcifs mailing list