Microsoft KB Archive/841451

= FIX: A Content-Type header that is incorrectly formatted causes the QueryString part of the URL to be decoded incorrectly in ASP.NET =

Article ID: 841451

Article Last Modified on 4/7/2006

-

APPLIES TO


 * Microsoft ASP.NET 1.1
 * Microsoft .NET Framework 1.1

-





SYMPTOMS
The Microsoft ASP.NET Request.Url property and the Request.QueryString.Get method do not return correct data for a URL. The QueryString bytes are decoded as a Unicode string when they really are a UTF-8 string. Therefore, every two characters or two bytes are replaced with one Unicode character in the URL.



CAUSE
A Content-Type header that is incorrectly formatted causes the QueryString part of a URL to be decoded incorrectly in ASP.NET. Specifically, this problem occurs when a Content-Type header does not end with a pair of quotation marks.



RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft .NET Framework service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question. The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Date        Time   Version            Size    File name -- 28-Apr-2004 15:54  1.1.4322.1037     258,048  Aspnet_isapi.dll 28-Apr-2004 15:54  1.1.4322.1037      20,480  Aspnet_regiis.exe 28-Apr-2004 15:54  1.1.4322.1037      32,768  Aspnet_state.exe 28-Apr-2004 15:54  1.1.4322.1037      32,768  Aspnet_wp.exe 05-Apr-2004 21:39                     33,718  Installpersistsqlstate.sql 05-Apr-2004 21:39                     34,342  Installsqlstate.sql 05-Apr-2004 21:39                     35,243  Installsqlstatetemplate.sql 28-Apr-2004 15:45  1.1.4322.1037      94,208  Perfcounter.dll 28-Apr-2004 15:49                      8,685  Smartnav.js 29-Apr-2004  16:06  1.1.4322.1037   1,220,608  System.dll 29-Apr-2004 16:06  1.1.4322.1037     241,664  System.messaging.dll 29-Apr-2004 16:06  1.1.4322.1037     323,584  System.runtime.remoting.dll 29-Apr-2004 16:06  1.1.4322.1037     131,072  System.runtime.serialization.formatters.soap.dll 29-Apr-2004 16:06  1.1.4322.1037   1,257,472  System.web.dll 29-Apr-2004 16:06  1.1.4322.1037     819,200  System.web.mobile.dll 29-Apr-2004 16:06  1.1.4322.1037     569,344  System.web.services.dll 29-Apr-2004 16:06  1.1.4322.1037   1,339,392  System.xml.dll 28-Apr-2004 15:49                     14,482  Webuivalidation.js



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbbug kbfix kbqfe kbwebforms kbappdev kbweb kbwebclasses kbhotfixserver KB841451

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.