Fix a bunch of open redirect vulns

This commit is contained in:
nicolas.dorier
2022-05-13 10:26:20 +09:00
parent e597b2177c
commit 4eb143c265
2 changed files with 4 additions and 4 deletions

View File

@@ -217,7 +217,7 @@ namespace BTCPayServer.Controllers
return NotFound();
}
await _notificationManager.ToggleSeen(new NotificationsQuery() { Seen = false, UserId = userId }, true);
return Redirect(returnUrl);
return LocalRedirect(returnUrl);
}
private bool ValidUserClaim(out string userId)