mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19818: BeginAntiForgery doesn't format data attributes
Work Item: 19818 Signed-off-by: Sebastien Ros <sebastien.ros@microsoft.com>
This commit is contained in:

committed by
Sebastien Ros

parent
3b4a235f8b
commit
6f22578f5b
@@ -264,7 +264,7 @@ namespace Orchard.Mvc.Html {
|
||||
}
|
||||
|
||||
public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper, string formAction, FormMethod formMethod, object htmlAttributes) {
|
||||
return htmlHelper.BeginFormAntiForgeryPost(formAction, formMethod, new RouteValueDictionary(htmlAttributes));
|
||||
return htmlHelper.BeginFormAntiForgeryPost(formAction, formMethod, HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes));
|
||||
}
|
||||
|
||||
public static MvcForm BeginFormAntiForgeryPost(this HtmlHelper htmlHelper, string formAction, FormMethod formMethod, IDictionary<string, object> htmlAttributes) {
|
||||
|
Reference in New Issue
Block a user