mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-08 13:12:12 +00:00
SEC-1803: Add check in AbstractAuthenticationTargetUrlRequestHandler for null targetUrlParameter before attempting to read it from the request. Prevents NPE when targetUrlParameter is not set.
This commit is contained in:
parent
102027a44c
commit
ee74c4ced2
@ -83,7 +83,11 @@ public abstract class AbstractAuthenticationTargetUrlRequestHandler {
|
||||
}
|
||||
|
||||
// Check for the parameter and use that if available
|
||||
String targetUrl = request.getParameter(targetUrlParameter);
|
||||
String targetUrl = null;
|
||||
|
||||
if (targetUrlParameter != null) {
|
||||
targetUrl = request.getParameter(targetUrlParameter);
|
||||
}
|
||||
|
||||
if (StringUtils.hasText(targetUrl)) {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user