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 c986f3b commit 2a8b37eCopy full SHA for 2a8b37e
1 file changed
javascript/ql/test/query-tests/Security/CWE-079/unsafe-jquery-plugin.js
@@ -152,8 +152,8 @@
152
153
$.fn.my_plugin = function my_plugin(options) {
154
let target = options.target;
155
- target === DEFAULTS.target? $(target): $(document).find(target); // NOT OK - but not flagged [INCONSISTENCY]
156
- options.target === DEFAULTS.target? $(options.target): $(document).find(options.target); // NOT OK - but not flagged [INCONSISTENCY]
+ target === DEFAULTS.target? $(target): $(document).find(target); // OK
+ 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]
158
}
159
0 commit comments