mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
SEC-1903: Use a static CRLF Pattern in FirewalledResponse
The Pattern was being recompiled for every request when a single instance could be shared for performance reasons.
This commit is contained in:
parent
0f9ee81df1
commit
538e75ce1b
@ -9,7 +9,7 @@ import java.util.regex.Pattern;
|
|||||||
* @author Luke Taylor
|
* @author Luke Taylor
|
||||||
*/
|
*/
|
||||||
class FirewalledResponse extends HttpServletResponseWrapper {
|
class FirewalledResponse extends HttpServletResponseWrapper {
|
||||||
Pattern CR_OR_LF = Pattern.compile("\\r|\\n");
|
private static final Pattern CR_OR_LF = Pattern.compile("\\r|\\n");
|
||||||
|
|
||||||
public FirewalledResponse(HttpServletResponse response) {
|
public FirewalledResponse(HttpServletResponse response) {
|
||||||
super(response);
|
super(response);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user