rspec/rules/S5753/vbnet/comments-and-links.adoc

33 lines
750 B
Plaintext
Raw Normal View History

=== on 15 Jan 2021, 18:31:49 Andrei Epure wrote:
== Sensitive Code Example
At application level, configured in the Web.config file:
----
<configuration>
<system.web>
<pages validateRequest="false" />
...
<httpRuntime requestValidationMode="0.0" />
</system.web>
</configuration>
----
== Compliant
At application level, configured in the Web.config file:
----
<configuration>
<system.web>
<pages validateRequest="true" />
...
<!-- see https://docs.microsoft.com/en-us/dotnet/api/system.web.configuration.httpruntimesection.requestvalidationmode?view=netframework-4.8 -->
<httpRuntime requestValidationMode="4.5" />
</system.web>
</configuration>
----
include::../comments-and-links.adoc[]