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 2f6696e commit b9f642fCopy full SHA for b9f642f
java/ql/lib/semmle/code/java/security/PathSanitizer.qll
@@ -428,7 +428,7 @@ private predicate replacesDirectoryCharactersWithSingleReplaceAll(
428
targetValue.matches("[%\\\\\\\\%]")
429
or
430
targetValue.matches("%|%") and
431
- targetValue.matches("%" + ["\\.\\.", "[.][.]", "\\."] + "%") and
+ targetValue.matches("%" + ["[.]", "\\."] + "%") and
432
targetValue.matches("%/%") and
433
targetValue.matches("%\\\\\\\\%")
434
)
0 commit comments