SPC020220: Do not call 'HttpUtility.HtmlEncode'. |
SPC020220: Do not call 'HttpUtility.HtmlEncode'. |
The assembly should not call HttpUtility.HtmlEncode(string) to encode strings. Use 'SPHttpUtility.HtmlEncode' instead.
TypeName: | DoNotCallHttpUtilityHtmlEncode |
CheckId: | SPC020220 |
Severity: | CriticalWarning |
Type: | AssemblyFileReference |
Remove calls to 'HttpUtility.HtmlEncode'. The .NET Framework HttpUtility encoding library does not encode all characters sufficiently. For example, SPHttpUtility in SharePoint encodes a single quotation mark as ' but .NET Framework HttpUtility does not encode the single quotation mark.
comments powered by Disqus
Copyright © 2013 RENCORE AB. All Rights Reserved
Disclaimer: The views and opinions expressed in this documentation and in SPCAF are those of the creators and do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. All trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners. SharePoint Code Analysis Framework, Version 4.5.2.7855, see www.spcaf.com for more information |