A potentially dangerous Request.Form value was detected from the client

前端 未结 30 2158
刺人心
刺人心 2020-11-21 05:24

Every time a user posts something containing < or > in a page in my web application, I get this exception thrown.

I don\'t want to go

30条回答
  •  说谎
    说谎 (楼主)
    2020-11-21 05:39

    As long as these are only "<" and ">" (and not the double quote itself) characters and you're using them in context like , you're safe (while for you would be vulnerable of course). That may simplify your situation, but for anything more use one of other posted solutions.

提交回复
热议问题