Skip to content

Commit 7da6077

Browse files
committed
Update to commons-codec:1.15
Closes gh-9575
1 parent 9b07b6a commit 7da6077

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dependencies/spring-security-dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
api "com.squareup.okhttp3:mockwebserver:3.14.9"
2323
api "com.squareup.okhttp3:okhttp:3.14.9"
2424
api "com.unboundid:unboundid-ldapsdk:4.0.14"
25-
api "commons-codec:commons-codec:1.14"
25+
api "commons-codec:commons-codec:1.15"
2626
api "commons-collections:commons-collections:3.2.2"
2727
api "commons-logging:commons-logging:1.2"
2828
api "io.projectreactor.tools:blockhound:1.0.6.RELEASE"

saml2/saml2-service-provider/core/src/main/java/org/springframework/security/saml2/provider/service/web/Saml2AuthenticationTokenConverter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import javax.servlet.http.HttpServletRequest;
2525

26+
import org.apache.commons.codec.CodecPolicy;
2627
import org.apache.commons.codec.binary.Base64;
2728

2829
import org.springframework.core.convert.converter.Converter;
@@ -45,7 +46,7 @@
4546
*/
4647
public final class Saml2AuthenticationTokenConverter implements AuthenticationConverter {
4748

48-
private static Base64 BASE64 = new Base64(0, new byte[] { '\n' });
49+
private static Base64 BASE64 = new Base64(0, new byte[] { '\n' }, false, CodecPolicy.STRICT);
4950

5051
private final Converter<HttpServletRequest, RelyingPartyRegistration> relyingPartyRegistrationResolver;
5152

0 commit comments

Comments
 (0)