SEC-967: TextUtils.java does not escape ampersand character
http://jira.springframework.org/browse/SEC-967. Added escaping of '&' character
This commit is contained in:
parent
d781deffe7
commit
4e2d6f8b2e
|
@ -26,6 +26,8 @@ public abstract class TextUtils {
|
|||
sb.append(""");
|
||||
} else if (c == '\'') {
|
||||
sb.append("'");
|
||||
} else if (c == '&') {
|
||||
sb.append("&");
|
||||
} else {
|
||||
sb.append(c);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue