从URL中删除字符“有潜在危险的Request.Path值”

时间:2015-10-20 06:01:00

标签: c# asp.net url-rewriting

我正在使用asp.net并使用url rewriting

我收到此错误

 A potentially dangerous Request.Path value was detected from the client (&).

基本上我希望删除导致此错误的所有字符。

例如,在网址中找到字符&时会产生上述错误。

因此可以有任意数量的字符(包括外语字符)。

任何帮助都将受到高度赞赏

1 个答案:

答案 0 :(得分:1)