look at this code:

    public static String checkCharacterData(String text) {
        if (text == null) {
            return "A null is not a legal XML value";
        }

        // do check
        for (int i = 0, len = text.length(); i<len; i++) {
            if (!isXMLCharacter(text.charAt(i))) {
                // Likely this character can't be easily displayed
                // because it's a control so we use it'd hexadecimal
                // representation in the reason.
                return ("0x" + Integer.toHexString(text.charAt(i))
                 + " is not a legal XML character");
            }
        }

        // If we got here, everything is OK
        return null;
    }

there is a big issue here: what about high-unicode characters like &0x10000; and above?

Slide fails to pass one of the litmus webdav compliance tests because of this.

Any suggestion on how to patch it? anyone?

--
Stefano.

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to