Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!string.IsNullOrWhiteSpace(returnUrl) && !Url.IsLocalUrl(returnUrl))
- {
- throw new Exception($"An open redirection attack was detected. User was going to login and then be returned to: {returnUrl}.");
- }
Add Comment
Please, Sign In to add comment