Skip to content

Commit 3083360

Browse files
Jami CogswellJami Cogswell
Jami Cogswell
authored and
Jami Cogswell
committed
Java: remove 'complementary' from qldocs
1 parent b9f642f commit 3083360

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/ql/lib/semmle/code/java/security/PathSanitizer.qll

+4-4
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,8 @@ private predicate replacesDirectoryCharactersWithDoubleReplaceOrReplaceAll(
470470
}
471471

472472
/**
473-
* A complementary sanitizer that protects against path injection vulnerabilities
474-
* by replacing directory characters ('..', '/', and '\') with safe characters.
473+
* A sanitizer that protects against path injection vulnerabilities by replacing
474+
* directory characters ('..', '/', and '\') with safe characters.
475475
*/
476476
private class ReplaceDirectoryCharactersSanitizer extends StringReplaceOrReplaceAllCall {
477477
ReplaceDirectoryCharactersSanitizer() {
@@ -520,8 +520,8 @@ private predicate isMatchesCall(StringMatchesCall matchesCall, Expr checkedExpr,
520520
}
521521

522522
/**
523-
* A complementary guard that protects against path traversal by looking
524-
* for patterns that exclude directory characters: `..`, '/', and '\'.
523+
* A guard that protects against path traversal by looking for patterns
524+
* that exclude directory characters: `..`, '/', and '\'.
525525
*/
526526
private class DirectoryCharactersGuard extends PathGuard {
527527
Expr checkedExpr;

0 commit comments

Comments
 (0)