mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 06:12:27 +00:00
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(""");
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user