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…
Reference in New Issue