Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 877 Bytes

043 HttpRequest.ContentEncoding property prohibits UTF7.md

File metadata and controls

27 lines (18 loc) · 877 Bytes

43: HttpRequest.ContentEncoding property prohibits UTF7

Scope

Edge

Version Introduced

4.5

Source Analyzer Status

Available

Change Description

Beginning in .NET Framework 4.5, UTF-7 encoding is prohibited in HttpRequests' bodies. Data for applications that depend on incoming UTF-7 data will not decode properly in some cases.

  • Quirked
  • Build-time break

Recommended Action

Ideally, applications should be updated to not use UTF-7 encoding in HttpRequests. Alternatively, legacy behavior can be restored by using the aspnet:AllowUtf7RequestContentEncoding attribute of the appSettings element.

Affected APIs

  • P:System.Web.HttpRequest.ContentEncoding

Category

ASP.NET

More information