double escape sequence inside a url : The request filtering module is configured to deny a request that contains a double escape sequence

后端 未结 5 624
攒了一身酷
攒了一身酷 2020-12-05 03:55

On my ASP.NET MVC application, I am trying to implement a URL like below :

/product/tags/for+families

When I try to run my appl

5条回答
  •  不思量自难忘°
    2020-12-05 04:19

    Encode the encrypted string separated:

    return HttpServerUtility.UrlTokenEncode(Encoding.UTF8.GetBytes("string"));
    

    Decode the encrypted string separated:

    string x = Encoding.UTF8.GetString(HttpServerUtility.UrlTokenDecode(id));
    

提交回复
热议问题