Plus sign in 3des encrypted url
I have a url that is created from a 3des function. The webserver should decrypt this url and grab the parameters it needs.
However, the decrypt function is failing due to a plus sign in the string, the webserver (iis7, also on iis5) is reading this as a space.
I understand this is by design but is there any way to disable it? I've added the following line into my web.config but to no avail!
<system.webServer>
<security>
<requestFiltering allowDoubleEscaping="true"开发者_Go百科 />
</security>
</system.webServer>
Thanks
You need to urlencode the string before you use it. the plus will be encoded as %2b. asp.net & javascript both have functions to allow you to do this.
alternatively & less reliably do the opposite & look for spaces & put a + back in when you find one.
精彩评论