mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-01 10:59:16 +00:00
SEC-1333: Added error message for invalid redirect URL assertion
This commit is contained in:
parent
aeed49393c
commit
97a31cae04
@ -66,7 +66,8 @@ public class SimpleUrlAuthenticationFailureHandler implements AuthenticationFail
|
||||
* @param defaultFailureUrl the failure URL, for example "/loginFailed.jsp".
|
||||
*/
|
||||
public void setDefaultFailureUrl(String defaultFailureUrl) {
|
||||
Assert.isTrue(UrlUtils.isValidRedirectUrl(defaultFailureUrl));
|
||||
Assert.isTrue(UrlUtils.isValidRedirectUrl(defaultFailureUrl),
|
||||
"'" + defaultFailureUrl + "' is not a valid redirect URL");
|
||||
this.defaultFailureUrl = defaultFailureUrl;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user