mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
#18327: Fixing comments redirection
Work Item: 18327 --HG-- branch : 1.x
This commit is contained in:
@@ -17,7 +17,6 @@ namespace Orchard.Mvc.Extensions {
|
||||
public static ActionResult RedirectLocal(this Controller controller, string redirectUrl, string defaultUrl) {
|
||||
if (!string.IsNullOrWhiteSpace(redirectUrl)
|
||||
&& controller.Url.IsLocalUrl(redirectUrl)
|
||||
&& redirectUrl.StartsWith("/")
|
||||
&& !redirectUrl.StartsWith("//")
|
||||
&& !redirectUrl.StartsWith("/\\")) {
|
||||
|
||||
|
Reference in New Issue
Block a user