Guest User

Untitled

a guest
Jan 23rd, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. if (!string.IsNullOrWhiteSpace(returnUrl) && !Url.IsLocalUrl(returnUrl))
  2. {
  3. throw new Exception($"An open redirection attack was detected. User was going to login and then be returned to: {returnUrl}.");
  4. }
Add Comment
Please, Sign In to add comment