mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
C#: Update expected test output.
This commit is contained in:
@@ -5,7 +5,6 @@ edges
|
||||
| LogForging.cs:17:27:17:61 | access to indexer : String | LogForging.cs:20:21:20:43 | ... + ... |
|
||||
| LogForging.cs:17:27:17:61 | access to indexer : String | LogForging.cs:26:50:26:72 | ... + ... |
|
||||
| LogForgingAsp.cs:8:32:8:39 | username : String | LogForgingAsp.cs:12:21:12:43 | ... + ... |
|
||||
| LogForgingAsp.cs:15:34:15:37 | date : DateTime | LogForgingAsp.cs:19:21:19:64 | $"..." |
|
||||
nodes
|
||||
| LogForging.cs:17:27:17:49 | access to property QueryString : NameValueCollection | semmle.label | access to property QueryString : NameValueCollection |
|
||||
| LogForging.cs:17:27:17:61 | access to indexer : String | semmle.label | access to indexer : String |
|
||||
@@ -13,11 +12,8 @@ nodes
|
||||
| LogForging.cs:26:50:26:72 | ... + ... | semmle.label | ... + ... |
|
||||
| LogForgingAsp.cs:8:32:8:39 | username : String | semmle.label | username : String |
|
||||
| LogForgingAsp.cs:12:21:12:43 | ... + ... | semmle.label | ... + ... |
|
||||
| LogForgingAsp.cs:15:34:15:37 | date : DateTime | semmle.label | date : DateTime |
|
||||
| LogForgingAsp.cs:19:21:19:64 | $"..." | semmle.label | $"..." |
|
||||
subpaths
|
||||
#select
|
||||
| LogForging.cs:20:21:20:43 | ... + ... | LogForging.cs:17:27:17:49 | access to property QueryString : NameValueCollection | LogForging.cs:20:21:20:43 | ... + ... | $@ flows to log entry. | LogForging.cs:17:27:17:49 | access to property QueryString | User-provided value |
|
||||
| LogForging.cs:26:50:26:72 | ... + ... | LogForging.cs:17:27:17:49 | access to property QueryString : NameValueCollection | LogForging.cs:26:50:26:72 | ... + ... | $@ flows to log entry. | LogForging.cs:17:27:17:49 | access to property QueryString | User-provided value |
|
||||
| LogForgingAsp.cs:12:21:12:43 | ... + ... | LogForgingAsp.cs:8:32:8:39 | username : String | LogForgingAsp.cs:12:21:12:43 | ... + ... | $@ flows to log entry. | LogForgingAsp.cs:8:32:8:39 | username | User-provided value |
|
||||
| LogForgingAsp.cs:19:21:19:64 | $"..." | LogForgingAsp.cs:15:34:15:37 | date : DateTime | LogForgingAsp.cs:19:21:19:64 | $"..." | $@ flows to log entry. | LogForgingAsp.cs:15:34:15:37 | date | User-provided value |
|
||||
|
||||
@@ -15,7 +15,7 @@ public class AspController : ControllerBase
|
||||
public void Action1(DateTime date)
|
||||
{
|
||||
var logger = new ILogger();
|
||||
// GOOD: DateTime is a sanitizer. (FALSE POSITIVE)
|
||||
// GOOD: DateTime is a sanitizer.
|
||||
logger.Warn($"Warning about the date: {date:yyyy-MM-dd}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user