Skip to content

Commit

Permalink
Merge pull request #1525 from DuendeSoftware/anders/comment-update
Browse files Browse the repository at this point in the history
Update misleading comment
  • Loading branch information
brockallen committed Mar 6, 2024
2 parents aff8930 + 42d6ae0 commit d7e9a55
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -24,7 +24,7 @@ public IActionResult OnGet(string scheme, string? returnUrl)
{
if (string.IsNullOrEmpty(returnUrl)) returnUrl = "~/";

// validate returnUrl - either it is a valid OIDC URL or back to a local page
// Abort on incorrect returnUrl - it is neither a local url nor a valid OIDC url.
if (Url.IsLocalUrl(returnUrl) == false && _interactionService.IsValidReturnUrl(returnUrl) == false)
{
// user might have clicked on a malicious link - should be logged
Expand Down
Expand Up @@ -24,7 +24,7 @@ public IActionResult OnGet(string scheme, string? returnUrl)
{
if (string.IsNullOrEmpty(returnUrl)) returnUrl = "~/";

// validate returnUrl - either it is a valid OIDC URL or back to a local page
// Abort on incorrect returnUrl - it is neither a local url nor a valid OIDC url.
if (Url.IsLocalUrl(returnUrl) == false && _interactionService.IsValidReturnUrl(returnUrl) == false)
{
// user might have clicked on a malicious link - should be logged
Expand Down
Expand Up @@ -24,7 +24,7 @@ public IActionResult OnGet(string scheme, string? returnUrl)
{
if (string.IsNullOrEmpty(returnUrl)) returnUrl = "~/";

// validate returnUrl - either it is a valid OIDC URL or back to a local page
// Abort on incorrect returnUrl - it is neither a local url nor a valid OIDC url.
if (Url.IsLocalUrl(returnUrl) == false && _interactionService.IsValidReturnUrl(returnUrl) == false)
{
// user might have clicked on a malicious link - should be logged
Expand Down
2 changes: 1 addition & 1 deletion hosts/main/Pages/ExternalLogin/Challenge.cshtml.cs
Expand Up @@ -24,7 +24,7 @@ public IActionResult OnGet(string scheme, string? returnUrl)
{
if (string.IsNullOrEmpty(returnUrl)) returnUrl = "~/";

// validate returnUrl - either it is a valid OIDC URL or back to a local page
// Abort on incorrect returnUrl - it is neither a local url nor a valid OIDC url.
if (Url.IsLocalUrl(returnUrl) == false && _interactionService.IsValidReturnUrl(returnUrl) == false)
{
// user might have clicked on a malicious link - should be logged
Expand Down

0 comments on commit d7e9a55

Please sign in to comment.