Question

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" />
    </security>
</system.webServer>

Thanks

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top