错误可能有危险 [英] Error Potentially dangerous

查看:108
本文介绍了错误可能有危险的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



是否有任何解决方案可以解决此错误从客户端检测到潜在危险的Request.Form值,而我正在尝试保存 < meta content =>。它可以在本地机器上完美地工作,但它不能在Staging服务器上工作我做什么?我正在工作.net 3.5,有什么希望吗?

Dear all,

Is there any solution for this error "A potentially dangerous Request.Form value was detected from the client", while am trying to save "<meta content ="">". It will work in local machine perfectly, But it's not working in Staging server what i do? am working in .net 3.5, Any hope?

推荐答案

正如我在一小时前提出这个问题时所说:错误潜在危险 [ ^ ]



您的一个或多个文本框包含XML样式标记 - 以及框架警告您可能会被HTML注入攻击。



您需要确保您的数据可以安全存储和显示,并且您可以禁用错误消息按照错误消息中的说明进行操作。

如果您使用的是.NET 4,则可能需要通过将以下内容添加到web.config来回退到验证模式:

As I said when you asked this question an hour ago: Error Potentially dangerous[^]

"One or more of your textboxes contains XML style tags - and the framework is warning you that you may be being attacked by HTML injection.

You need to ensure that your data is safe to store and display, and you can disable the error message by following the instructions in the error message.
If you are using .NET 4, then you may need to drop back to the validation mode by adding the following to web.config:
<system.web>
    <httpRuntime requestValidationMode="2.0" />
</system.web>



但请注意,您需要检查数据!只是关闭错误是你网站上的一个巨大的安全漏洞!




再次发布问题,不会改变答案。


But do be aware that you need to check the data! Just turning the error off is a massive security hole in your site!"


Posting the question again, does not change the answer.


这篇关于错误可能有危险的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆