Browse Source

Merge pull request #12657 from abpframework/auto-merge/rel-5-3/1080

Merge branch dev with rel-5.3
pull/12663/head
maliming 4 years ago
committed by GitHub
parent
commit
f9bb8ffb23
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs

11
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs

@ -34,11 +34,14 @@ public class ManageModel : AccountPageModel
await contributor.ConfigureAsync(ProfileManagementPageCreationContext);
}
if (!Url.IsLocalUrl(ReturnUrl) &&
!ReturnUrl.StartsWith(UriHelper.BuildAbsolute(Request.Scheme, Request.Host, Request.PathBase).RemovePostFix("/")) &&
!AppUrlProvider.IsRedirectAllowedUrl(ReturnUrl))
if (ReturnUrl != null)
{
ReturnUrl = null;
if (!Url.IsLocalUrl(ReturnUrl) &&
!ReturnUrl.StartsWith(UriHelper.BuildAbsolute(Request.Scheme, Request.Host, Request.PathBase).RemovePostFix("/")) &&
!AppUrlProvider.IsRedirectAllowedUrl(ReturnUrl))
{
ReturnUrl = null;
}
}
return Page();

Loading…
Cancel
Save