Skip to content

Commit fd05156

Browse files
committed
clarifying comment on the last jQuery inconsistency
1 parent b18f518 commit fd05156

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/ql/test/query-tests/Security/CWE-079/unsafe-jquery-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
let target = options.target;
155155
target === DEFAULTS.target? $(target): $(document).find(target); // OK
156156
options.target === DEFAULTS.target? $(options.target): $(document).find(options.target); // OK
157-
options.targets.a === DEFAULTS.target? $(options.target.a): $(document).find(options.target.a); // OK - but still flagged [INCONSISTENCY]
157+
options.targets.a === DEFAULTS.target? $(options.target.a): $(document).find(options.target.a); // OK - should be sanitized by `MembershipTestSanitizer` - but still flagged because `AccessPath` can't handle these deeply nested properties [INCONSISTENCY]
158158
}
159159

160160
$.fn.my_plugin = function my_plugin(options) {

0 commit comments

Comments
 (0)