Skip to content

Commit b8fa943

Browse files
committed
Fix duplicated test
1 parent 264d6db commit b8fa943

File tree

1 file changed

+3
-3
lines changed
  • java/ql/test/library-tests/pathsanitizer

1 file changed

+3
-3
lines changed

java/ql/test/library-tests/pathsanitizer/Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ public void dotDotCheckGuard() throws Exception {
258258
}
259259
{
260260
String source = (String) source();
261-
if (!source.startsWith("/data") && source.indexOf("..") == -1)
262-
sink(source); // Safe
263-
else
261+
if (source.startsWith("/data") || source.indexOf("..") != -1)
264262
sink(source); // $ hasTaintFlow
263+
else
264+
sink(source); // Safe
265265
}
266266
{
267267
String source = (String) source();

0 commit comments

Comments
 (0)