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

前端 未结 8 1928
执笔经年
执笔经年 2020-11-22 12:18

I am receiving the rather self explanatory error:

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

T

8条回答
  •  抹茶落季
    2020-11-22 12:55

    When dealing with Uniform Resource Locator(URL) s there are certain syntax standards, in this particular situation we are dealing with Reserved Characters.

    As up to RFC 3986, Reserved Characters may (or may not) be defined as delimiters by the generic syntax, by each scheme-specific syntax, or by the implementation-specific syntax of a URI's dereferencing algorithm; And asterisk(*) is a Reserved Character.

    The best practice is to use Unreserved Characters in URLs or you can try encoding it.

    Keep digging :

    • HTML URL Encoding Reference (w3schools)
    • When to Encode or Decode (RFC 3986)

提交回复
热议问题