File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/ql/src/experimental/Security/CWE/CWE-730 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class RegexSink extends DataFlow::ExprNode {
24
24
RegexSink ( ) {
25
25
exists ( MethodAccess ma , Method m | m = ma .getMethod ( ) |
26
26
(
27
- m .getDeclaringType ( ) . hasQualifiedName ( "java.lang" , "String" ) and
27
+ m .getDeclaringType ( ) instanceof TypeString and
28
28
(
29
29
ma .getArgument ( 0 ) = this .asExpr ( ) and
30
30
(
@@ -47,7 +47,7 @@ class RegexSink extends DataFlow::ExprNode {
47
47
m .getDeclaringType ( ) .hasQualifiedName ( "org.apache.commons.lang3" , "RegExUtils" ) and
48
48
(
49
49
ma .getArgument ( 1 ) = this .asExpr ( ) and
50
- m .getParameterType ( 1 ) .( Class ) . hasQualifiedName ( "java.lang" , "String" ) and
50
+ m .getParameterType ( 1 ) .( Class ) instanceof TypeString and
51
51
(
52
52
m .hasName ( "removeAll" ) or
53
53
m .hasName ( "removeFirst" ) or
You can’t perform that action at this time.
0 commit comments