What steps will reproduce the problem?
1. String raw ="C:\\Documents and Settings\\Mario\\Desktop\\";
2. System.out.println(ESAPI.encoder().canonicalize(raw));
What is the expected output? What do you see instead?
I expect the same as the input String because the input does not contain any
javascript encoded char such as \r or \t
Instead I see this in the console :
C:Documents and SettingsMarioDesktop\
What version of the product are you using? On what operating system?
ESAPI java 2.0.1 on Windows, Java 5
Does this issue affect only a specified browser or set of browsers?
Nope.
Please provide any additional information below.
I've made a modification to JavascriptCodec, at the end of the method
decodeCharacter() replacing :
// ignore the backslash and return the character
return second;
by :
// not an encoded character, return it
input.reset();
return null;
Original issue reported on code.google.com by david.al...@hraccess.com on 15 Nov 2011 at 9:31
Original issue reported on code.google.com by
david.al...@hraccess.com
on 15 Nov 2011 at 9:31