diff --git a/src/Orchard.Web/Modules/Orchard.Users/Views/Account/ChallengeEmailSent.cshtml b/src/Orchard.Web/Modules/Orchard.Users/Views/Account/ChallengeEmailSent.cshtml index 985230349..5a95ae308 100644 --- a/src/Orchard.Web/Modules/Orchard.Users/Views/Account/ChallengeEmailSent.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Users/Views/Account/ChallengeEmailSent.cshtml @@ -1,4 +1,6 @@ @model dynamic

@Html.TitleForPage(T("Challenge Email Sent").ToString())

@T("An email has been sent to you. Please click on the link it contains in order to have access on this site.")

-

@Html.Link(T("Go back to where you were"), Url.Content(Request.QueryString["ReturnUrl"]))

+@if (Url.IsLocalUrl(Request.QueryString["ReturnUrl"])) { +

@Html.Link(T("Go back to where you were"), Url.Content(Request.QueryString["ReturnUrl"]))

+} \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Users/Views/Account/RegistrationPending.cshtml b/src/Orchard.Web/Modules/Orchard.Users/Views/Account/RegistrationPending.cshtml index 4866af55c..4ec1558ee 100644 --- a/src/Orchard.Web/Modules/Orchard.Users/Views/Account/RegistrationPending.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Users/Views/Account/RegistrationPending.cshtml @@ -1,4 +1,6 @@ @model dynamic

@Html.TitleForPage(T("User Registration Pending").ToString())

@T("Your user account has been created but has to be approved before it can be used.")

-

@Html.Link(T("Go back to where you were"), Url.Content(Request.QueryString["ReturnUrl"]))

+@if (Url.IsLocalUrl(Request.QueryString["ReturnUrl"])) { +

@Html.Link(T("Go back to where you were"), Url.Content(Request.QueryString["ReturnUrl"]))

+} \ No newline at end of file