#19818: BeginAntiForgery doesn't format data attributes

Work Item: 19818

Signed-off-by: Sebastien Ros <sebastien.ros@microsoft.com>
This commit is contained in:
David Cornish@DavidCornish-PC
2013-08-08 16:45:54 -07:00
committed by Sebastien Ros
parent 3b4a235f8b
commit 6f22578f5b

View File

@@ -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) {