rspec/rules/S5753/sensitive.adoc

24 lines
368 B
Plaintext
Raw Normal View History

2021-01-13 11:35:08 +00:00
== Sensitive Code Example
At Controller level:
----
[ValidateInput(false)]
public ActionResult Welcome(string name)
{
...
}
----
At application level, configured in the Web.config file:
----
<configuration>
<system.web>
<pages validateRequest="false" />
...
<httpRuntime requestValidationMode="0.0" />
</system.web>
</configuration>
----