从request.query中检测到风险值

这个是需要在controller上添加的

[ValidateInput(false)]

requestValidationMode这个是要添加到webConfig中

  <system.web>
    <compilation debug="true" targetFramework="4.5.2" />
    <httpRuntime targetFramework="4.5.2"  requestValidationMode="2.0"/>

作者:spike

分类: Net

创作时间:2023-06-25

更新时间:2024-12-08

联系方式放在中括号之中例如[[email protected]],回复评论在开头加上标号例如:#1