mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Java: condense '.' matching
This commit is contained in:
@@ -428,7 +428,7 @@ private predicate replacesDirectoryCharactersWithSingleReplaceAll(
|
||||
targetValue.matches("[%\\\\\\\\%]")
|
||||
or
|
||||
targetValue.matches("%|%") and
|
||||
targetValue.matches("%" + ["\\.\\.", "[.][.]", "\\."] + "%") and
|
||||
targetValue.matches("%" + ["[.]", "\\."] + "%") and
|
||||
targetValue.matches("%/%") and
|
||||
targetValue.matches("%\\\\\\\\%")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user