We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c74cc6 commit 6d4f1ebCopy full SHA for 6d4f1eb
csharp/ql/lib/semmle/code/csharp/security/Sanitizers.qll
@@ -54,7 +54,12 @@ class UrlSanitizedExpr extends Expr {
54
* An expression node with a simple type.
55
*/
56
class SimpleTypeSanitizedExpr extends DataFlow::ExprNode {
57
- SimpleTypeSanitizedExpr() { this.getType() instanceof SimpleType }
+ SimpleTypeSanitizedExpr() {
58
+ exists(Type t | t = this.getType() |
59
+ t instanceof SimpleType or
60
+ t instanceof SystemDateTimeStruct
61
+ )
62
+ }
63
}
64
65
/**
0 commit comments