Questions tagged [httputility]
5 questions
3
votes
1 answer
HttpUtility.ParseQueryString missing some characters
I'm trying to extract en email with the + special character but for some reason the ParseQueryString skips it:
namespace ParsingProblem
{
class Program
{
static void Main(string[] args)
{
…

Fritjof Berggren
- 3,178
- 5
- 35
- 57
0
votes
0 answers
Reflected_XSS_All_Clients (C# sanitize issue)
I am using the tool Checkmarx to scan code for security vulnerabilities. One particular one is "Reflected XSS All Clients". The general fix to sanitize this is to use HttpUtility.UrlEncode or HttpUtility.HtmlEncode. I have come across some code…

Mark
- 31
- 1
0
votes
1 answer
URLDecode not working when building breadcrumb trail
I am using ASP.Net Core 5 MVC Visual Studio 2019.
I am building a buildcrumb trail.
My Code is -
var breadcrumb = new HtmlContentBuilder()
.AppendHtml("

user20408154
- 11
- 3
0
votes
1 answer
C# HtmlDecode from XElement (string) is not working
I working with a xml file.
I get a string from it, and this string is encoding in html;
I try to use HttpUtility.HtmlDecode but, it's not working...
What am I missing?
Screen
0
votes
1 answer
Cannot bind result of HTTPUtility method to session variables
I am using ASP.NET Web Forms. I am trying to bind some data from a previous page (including the URL and some specific figures stored in the URL) to session variables for use in a SQL insert statement to a SQL Server database.
An example of one of…

Soluble Snake
- 73
- 1
- 12