mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 14:52:24 +00:00
SEC-1772: remote URL decoding of targetUrlParameter in AbstractAuthenticationTargetUrlRequestHandler.
This commit is contained in:
parent
de97bac85b
commit
700fa9e0b6
@ -91,12 +91,6 @@ public abstract class AbstractAuthenticationTargetUrlRequestHandler {
|
|||||||
targetUrl = request.getParameter(targetUrlParameter);
|
targetUrl = request.getParameter(targetUrlParameter);
|
||||||
|
|
||||||
if (StringUtils.hasText(targetUrl)) {
|
if (StringUtils.hasText(targetUrl)) {
|
||||||
try {
|
|
||||||
targetUrl = URLDecoder.decode(targetUrl, "UTF-8");
|
|
||||||
} catch (UnsupportedEncodingException e) {
|
|
||||||
throw new IllegalStateException("UTF-8 not supported. Shouldn't be possible");
|
|
||||||
}
|
|
||||||
|
|
||||||
logger.debug("Found targetUrlParameter in request: " + targetUrl);
|
logger.debug("Found targetUrlParameter in request: " + targetUrl);
|
||||||
|
|
||||||
return targetUrl;
|
return targetUrl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user