[jdom-interest] verfier.checkNamespaceURI()

Jason Hunter jhunter at acm.org
Tue Jun 25 10:52:31 PDT 2002


A patch would be Ok.  I think we shouldn't exclude "unwise" characters.

Seems like "> 127" or "< 33" are bad ranges, as well as the chars < > ".

-jh-

Elliotte Rusty Harold wrote:
> 
> I do not understand the logic behind the Verifier.checkNamespaceURI()
> method's algorithm. In brief it checks that the first character is not a
> number, dollar sign, or hyphen. It ignores all subsequent characters. I
> don't see any such rules in either the namespaces or URI specs.
> 
> The rules I see in the URI spec say that the following characters are
> illegal anywhere in a URI reference, not just in the first character:
> 
> * Control characters
> * The space
> * markup characters < > "
> * Unwise characters: "{" | "}" | "|" | "\" | "^" | "[" | "]" | "`"
> * All non-ASCII characters
> 
> Should I go ahead and write a patch that replaces the old algorithm with
> one that looks for these characters? Or is there something I'm
> forgetting?
> 
> --
> Elliotte
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list