Fixed bug: character variable is called 'c', not 'ch'.
This commit is contained in:
parent
b6f8c5edb3
commit
9f76a1c03b
1 changed files with 2 additions and 2 deletions
|
@ -529,7 +529,7 @@ public final class HtmlEncoder {
|
||||||
if (c < 0x20) {
|
if (c < 0x20) {
|
||||||
// sort out invalid XML characters below 0x20 - all but 0x9, 0xA and 0xD.
|
// sort out invalid XML characters below 0x20 - all but 0x9, 0xA and 0xD.
|
||||||
// The trick is an adaption of java.lang.Character.isSpace().
|
// The trick is an adaption of java.lang.Character.isSpace().
|
||||||
if (((((1L << 0x9) | (1L << 0xA) | (1L << 0xD)) >> ch) & 1L) != 0)
|
if (((((1L << 0x9) | (1L << 0xA) | (1L << 0xD)) >> c) & 1L) != 0)
|
||||||
ret.append (c);
|
ret.append (c);
|
||||||
} else {
|
} else {
|
||||||
ret.append (c);
|
ret.append (c);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue