我正在将一个支付网关集成到web上,在成功支付后,该网关使用值abc回调我的服务。xmlns..
[HttpPost]
[ValidateInput(false)]
public ActionResult PDTHandler(FormCollection form)
{
string NotifyMessage = Request.Form.Get("NotifyData"); >> error A potentially dangerous Request.Form value was detected from <?xml....
}
发布于 2016-11-22 16:55:02
在web配置文件中添加以下设置
<system.web>
<httpRuntime requestValidationMode="2.0" />
<pages validateRequest="false" />
</system.web>
https://stackoverflow.com/questions/40737308
复制相似问题