We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6a10b commit 2f6696eCopy full SHA for 2f6696e
java/ql/test/library-tests/pathsanitizer/Test.java
@@ -729,6 +729,11 @@ public void directoryCharsSanitizer() throws Exception {
729
source = source.replaceAll(".|[/\\\\]", "");
730
sink(source); // $ hasTaintFlow
731
}
732
+ {
733
+ String source = (String) source();
734
+ source = source.replaceAll("\\.|/|\\\\", "");
735
+ sink(source); // Safe
736
+ }
737
{
738
String source = (String) source();
739
source = source.replaceAll("[\\./\\\\]", "");
0 commit comments