Skip to content

Commit 8dcdda6

Browse files
committed
C#: Address review comments.
1 parent 2fc7e51 commit 8dcdda6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

csharp/ql/test/query-tests/Security Features/CWE-601/UrlRedirect/UrlRedirect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Web;
3-
using System.Web.Helpers;
43
using System.Web.Mvc;
4+
using System.Web.WebPages;
55

66
public class UrlRedirectHandler : IHttpHandler
77
{

csharp/ql/test/resources/stubs/System.Web.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,15 @@ public static class AntiForgery
373373
{
374374
public static void Validate() { }
375375
}
376+
}
376377

378+
namespace System.Web.WebPages
379+
{
377380
public static class RequestExtensions
378381
{
379382
public static bool IsUrlLocalToHost(this System.Web.HttpRequestBase request, string url) => throw null;
380383
}
384+
381385
}
382386

383387
namespace System.Web.Script.Serialization

0 commit comments

Comments
 (0)