mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 04:43:35 +08:00
Changing the BeginFormAntiForgeryPost helper to use Request.Url.AbsolutePath instead Request.RawUrl for the action default (RawUrl give "/default.aspx?" for "/")
--HG-- branch : dev
This commit is contained in:
@@ -209,7 +209,7 @@ namespace Orchard.Mvc.Html {
|
|||||||
#region BeginFormAntiForgeryPost
|
#region BeginFormAntiForgeryPost
|
||||||
|
|
||||||
public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper) {
|
public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper) {
|
||||||
return htmlHelper.BeginFormAntiForgeryPost(htmlHelper.ViewContext.HttpContext.Request.RawUrl, FormMethod.Post, new RouteValueDictionary());
|
return htmlHelper.BeginFormAntiForgeryPost(htmlHelper.ViewContext.HttpContext.Request.Url.AbsolutePath, FormMethod.Post, new RouteValueDictionary());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper, string formAction) {
|
public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper, string formAction) {
|
||||||
|
Reference in New Issue
Block a user