mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Java: add test
This commit is contained in:
@@ -729,6 +729,11 @@ public class Test {
|
||||
source = source.replaceAll(".|[/\\\\]", "");
|
||||
sink(source); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
String source = (String) source();
|
||||
source = source.replaceAll("\\.|/|\\\\", "");
|
||||
sink(source); // Safe
|
||||
}
|
||||
{
|
||||
String source = (String) source();
|
||||
source = source.replaceAll("[\\./\\\\]", "");
|
||||
|
||||
Reference in New Issue
Block a user