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 9b02eb7 commit 0affd89Copy full SHA for 0affd89
javascript/ql/lib/semmle/javascript/frameworks/TrustedTypes.qll
@@ -25,8 +25,7 @@ module TrustedTypes {
25
26
/** Gets the function passed as the given option. */
27
DataFlow::FunctionNode getPolicyCallback(string method) {
28
- // Require local callback to avoid potential call/return mismatch in the uses below
29
- result = getOptionArgument(1, method).getALocalSource()
+ result = getParameter(1).getMember(method).getAValueReachingSink()
30
}
31
32
0 commit comments