Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What decodes my encoded hash symbol(%23)?

We noticed that several machines have problems with URLs with hash parameters.

When debugging a request with the URL:
http://domain.com/Entity(%23{number-here}

We see in the Application_BeginRequest method in the global.asaxfile the URL: http://domain.com/Entity(#23{number-here} in Url.OriginalString and the Url.LocalPath has http://domain.com/Entity( and all the chars after the hash are in Url.Fragment.

When running exactly the same application on machines running Windows 8.1 and IIS 8.5 it works as expected, the Url.OrinalString is http://domain.com/Entity(%23{number-here}.

I can't see anything suspisous in the URL rewrite section in the web.config or in the IIS configuration.

What can be the reason for this behaviour?

like image 294
gdoron is supporting Monica Avatar asked Oct 02 '22 16:10

gdoron is supporting Monica


1 Answers

This is a bug in System.Web.dll. It is fixed on Windows 8.1, but we haven't yet rolled out a fix to System.Web.dll on downlevel versions of the operating system. We're trying to get a fix in for .NET 4.5.x for all supported OSes when the next reliability update comes out.

like image 155
Levi Avatar answered Oct 05 '22 07:10

Levi