mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
18 lines
373 B
C#
18 lines
373 B
C#
using System;
|
|
using System.Text;
|
|
using System.Web;
|
|
|
|
public class UntrustedData : IHttpHandler
|
|
{
|
|
public void ProcessRequest(HttpContext ctx)
|
|
{
|
|
var name = ctx.Request.QueryString["name"];
|
|
var len = name.Length;
|
|
|
|
var myEncodedString = HttpUtility.HtmlEncode(name);
|
|
ctx.Response.Write(name);
|
|
}
|
|
|
|
public bool IsReusable => true;
|
|
}
|