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:
@@ -26,6 +26,8 @@ public abstract class TextUtils {
|
|||||||
sb.append(""");
|
sb.append(""");
|
||||||
} else if (c == '\'') {
|
} else if (c == '\'') {
|
||||||
sb.append("'");
|
sb.append("'");
|
||||||
|
} else if (c == '&') {
|
||||||
|
sb.append("&");
|
||||||
} else {
|
} else {
|
||||||
sb.append(c);
|
sb.append(c);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user