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:
Luke Taylor 2008-08-29 12:01:45 +00:00
parent d781deffe7
commit 4e2d6f8b2e
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ public abstract class TextUtils {
sb.append(""");
} else if (c == '\'') {
sb.append("'");
} else if (c == '&') {
sb.append("&");
} else {
sb.append(c);
}