[jcifs] jcifs bug?
Christopher R.Hertel
crh at ubiqx.org
Tue Feb 26 09:18:13 EST 2002
On Mon, Feb 25, 2002 at 02:59:11PM -0700, Bernie Wieser wrote:
> http://www.faqs.org/rfcs/rfc1738.html
>
> Except I have blurred 3.10 and 3.11 into one "intent".
That's what I thought. Note that 1738 has been superceeded by RFC2396
(keeping up with RFCs is an art unto itself). In the latter, we have:
server = [ [ userinfo "@" ] hostport ]
userinfo = *( unreserved | escaped |
";" | ":" | "&" | "=" | "+" | "$" | "," )
hostport = host [ ":" port ]
host = hostname | IPv4address
hostname = *( domainlabel "." ) toplabel [ "." ]
domainlabel = alphanum | alphanum *( alphanum | "-" ) alphanum
toplabel = alpha | alpha *( alphanum | "-" ) alphanum
IPv4address = 1*digit "." 1*digit "." 1*digit "." 1*digit
port = *digit
and
unreserved = alphanum | mark
mark = "-" | "_" | "." | "!" | "~" | "*" | "'" |
"(" | ")"
Dig through and you'll see that there's no '/' allowed in either the
<userinfo> field or in the <hostport> field, unless it is escaped. The
'/' is part of the reserved set:
reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
"$" | ","
..so I think we're okay.
Chris -)-----
--
Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/ -)----- crh at ubiqx.mn.org
More information about the jcifs
mailing list