mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
C#: Also consider nullable simple types (and datetime) as simple type sanitizers.
This commit is contained in:
@@ -55,7 +55,7 @@ class UrlSanitizedExpr extends Expr {
|
||||
*/
|
||||
class SimpleTypeSanitizedExpr extends DataFlow::ExprNode {
|
||||
SimpleTypeSanitizedExpr() {
|
||||
exists(Type t | t = this.getType() |
|
||||
exists(Type t | t = this.getType() or t = this.getType().(NullableType).getUnderlyingType() |
|
||||
t instanceof SimpleType or
|
||||
t instanceof SystemDateTimeStruct
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user