[jcifs] Re: SMB URL encoding/decoding

Michael B Allen mballen at erols.com
Sun Feb 24 13:48:23 EST 2002


On Sun, 24 Feb 2002 03:28:55 +0100
James Nord <teilo at teilo.net> wrote:

> Neither / nor @ have precedence over anything.  It is just that is the 
> only legal combination.
> 
> it is not legal to have ftp://user:pass@foo@foo:21/some/thing/else@/here
> 
> As we are only allowed zero or one @'s between the first 2 /'s and the 
> next /
> and if that @appears we are only alowed zero or 1 ':' between the 
> second  / and the first @
> 
> Maybe it is my interpritation of the word precedence (to mean rank 
> higher) which is getting in my way, but I would not say that / comes 
> before @
> to say that implies (to me at least) you could have 
> ftp://user:pass@foo@foo:21/some/thing/else@/here

I'm not sure what you mean by "we are only allowed" but none of the
above is true (which may be your point). You cannot count certain
characters. The password field could have three ':' or fifteen '@'s in
it. It can have anything. *That's* the real problem.

Mike

-- 
May The Source be with you.




More information about the jcifs mailing list