Skip to content

Commit 2a1cf98

Browse files
committed
Update Copyright and Formatting
Issue gh-13615
1 parent 5e715c5 commit 2a1cf98

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web/src/main/java/org/springframework/security/web/firewall/StrictHttpFirewall.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -830,8 +830,8 @@ private void validateAllowedHeaderName(String headerNames) {
830830

831831
private void validateAllowedHeaderValue(String name, String value) {
832832
if (!StrictHttpFirewall.this.allowedHeaderValues.test(value)) {
833-
throw new RequestRejectedException(
834-
"The request was rejected because the header: \"" + name + " \" has a value \"" + value + "\" that is not allowed.");
833+
throw new RequestRejectedException("The request was rejected because the header: \"" + name
834+
+ " \" has a value \"" + value + "\" that is not allowed.");
835835
}
836836
}
837837

@@ -844,8 +844,8 @@ private void validateAllowedParameterName(String name) {
844844

845845
private void validateAllowedParameterValue(String name, String value) {
846846
if (!StrictHttpFirewall.this.allowedParameterValues.test(value)) {
847-
throw new RequestRejectedException(
848-
"The request was rejected because the parameter: \"" + name + " \" has a value \"" + value + "\" that is not allowed.");
847+
throw new RequestRejectedException("The request was rejected because the parameter: \"" + name
848+
+ " \" has a value \"" + value + "\" that is not allowed.");
849849
}
850850
}
851851

0 commit comments

Comments
 (0)