Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions csharp/ql/test/query-tests/Security Features/CWE-611/stubs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
namespace System.Web;
namespace System
{
public class Uri { }

public interface IHtmlString { }
namespace Web
{
public interface IHtmlString { }
}
}
7 changes: 7 additions & 0 deletions csharp/ql/test/resources/stubs/System.Web.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ public class HttpRequest
public string RawUrl { get; set; }
public HttpCookieCollection Cookies => null;
public bool IsAuthenticated { get; set; }
public NameValueCollection Form { get; }
public NameValueCollection Headers { get; }
public NameValueCollection Params { get; }
public string UserAgent { get; }
public Uri UrlReferrer { get; }
public NameValueCollection ServerVariables { get; }
public String this[String key] => null;
}

public class HttpRequestWrapper : System.Web.HttpRequestBase
Expand Down
Loading