mirror of
https://github.com/github/codeql.git
synced 2026-04-21 23:14:03 +02:00
Use existing class StringReplaceAllCall
This commit is contained in:
@@ -11,9 +11,8 @@
|
||||
|
||||
import java
|
||||
|
||||
from MethodCall replaceAllCall
|
||||
from StringReplaceAllCall replaceAllCall
|
||||
where
|
||||
replaceAllCall.getMethod().hasQualifiedName("java.lang", "String", "replaceAll") and
|
||||
//only contains characters that could be a simple string
|
||||
replaceAllCall.getArgument(0).(StringLiteral).getValue().regexpMatch("^[a-zA-Z0-9]+$")
|
||||
select replaceAllCall,
|
||||
|
||||
Reference in New Issue
Block a user