mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
Fix duplicated test
This commit is contained in:
@@ -258,10 +258,10 @@ public class Test {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
String source = (String) source();
|
String source = (String) source();
|
||||||
if (!source.startsWith("/data") && source.indexOf("..") == -1)
|
if (source.startsWith("/data") || source.indexOf("..") != -1)
|
||||||
sink(source); // Safe
|
|
||||||
else
|
|
||||||
sink(source); // $ hasTaintFlow
|
sink(source); // $ hasTaintFlow
|
||||||
|
else
|
||||||
|
sink(source); // Safe
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
String source = (String) source();
|
String source = (String) source();
|
||||||
|
|||||||
Reference in New Issue
Block a user