Skip to content

Commit 18d26ca

Browse files
erik-kroghesbena
andauthored
Update javascript/ql/src/semmle/javascript/security/dataflow/UnsafeShellCommandConstructionCustomizations.qll
Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
1 parent 876ba7e commit 18d26ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

javascript/ql/src/semmle/javascript/security/dataflow/UnsafeShellCommandConstructionCustomizations.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ module UnsafeShellCommandConstruction {
191191
}
192192

193193
/**
194-
* A check of the form `type x === "X"`, where x is "number", or "boolean",
195-
* which sanitized `x` in its "then" branch.
194+
* A guard of the form `typeof x === "<T>"`, where <T> is "number", or "boolean",
195+
* which sanitizes `x` in its "then" branch.
196196
*/
197197
class TypeOfSanitizer extends TaintTracking::SanitizerGuardNode, DataFlow::ValueNode {
198198
Expr x;

0 commit comments

Comments
 (0)