RFC 2965 states "For two strings that represent paths, P1 and P2,
P1 path-matches P2 if P2 is a prefix of P1 (including the case
where P1 and P2 string-compare equal)." However,
mydomain.com/"), "mydomain.com")</code> returns false
because "mydomain.com" doesn't have two dots in it. Somewhere
there should be a check along the lines of <code>if
(host.equalsIgnoreCase(domain)) return true;</code>
Log in to post a comment.