This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change
FormTagHelper
to apply to all form tags.
- Added functional test to validate that non-attributed form tags have an antiforgery input generated. Re-generated baseline to reflect changes. - Added a unit test to validate that parameterless `FormTagHelper`s behave as expected. #6006
- Loading branch information
1 parent
ccdaa5a
commit 3d895a9
Showing
6 changed files
with
218 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...soft.AspNetCore.Mvc.FunctionalTests/compiler/resources/RazorPagesWebSite.SimpleForms.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<form></form> | ||
<form method="get"></form> | ||
<form method="post"><input name="__RequestVerificationToken" type="hidden" value="{0}" /></form> | ||
<form action="" method="post"><input name="__RequestVerificationToken" type="hidden" value="{0}" /></form> | ||
<form action="/Foo/Bar/Baz.html" method="get"></form> | ||
<form action="/Foo/Bar/Baz.html" method="post"></form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@page | ||
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" | ||
|
||
<form></form> | ||
<form method="get"></form> | ||
<form method="post"></form> | ||
<form action="" method="post"></form> | ||
<form action="/Foo/Bar/Baz.html" method="get"></form> | ||
<form action="/Foo/Bar/Baz.html" method="post"></form> |