#18327: Fixing comments redirection

Work Item: 18327

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-01-03 17:03:30 -08:00
parent bb84602481
commit 35cfff5db9

View File

@@ -17,7 +17,6 @@ namespace Orchard.Mvc.Extensions {
public static ActionResult RedirectLocal(this Controller controller, string redirectUrl, string defaultUrl) { public static ActionResult RedirectLocal(this Controller controller, string redirectUrl, string defaultUrl) {
if (!string.IsNullOrWhiteSpace(redirectUrl) if (!string.IsNullOrWhiteSpace(redirectUrl)
&& controller.Url.IsLocalUrl(redirectUrl) && controller.Url.IsLocalUrl(redirectUrl)
&& redirectUrl.StartsWith("/")
&& !redirectUrl.StartsWith("//") && !redirectUrl.StartsWith("//")
&& !redirectUrl.StartsWith("/\\")) { && !redirectUrl.StartsWith("/\\")) {