[Esapi-user] ESAPI 1.4.4 -> XMLEntityCodec -> encodeCharacter
Rama Krishna Pathangi
rpathangi at hotmail.com
Tue Mar 20 16:43:57 UTC 2012
We have been using ESAPI 1.4.4 for some time now. Currently we are running into an issue when feeding random text (some more text) to XMLEncodeCodec -> encodeCharacter.
The method encodeCharacter is spitting random text (some more text) as opposed to random text (some more text).
What can we do to fix this problem with minimal impact to the project?
public String encodeCharacter(char immune, Character c)
// check for immune characters
// check for unencoded characters
return "&#x" +
Integer.toHexString(c.charValue()) + ";";
Thank You in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Esapi-user