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 53f42f2 commit 4827900Copy full SHA for 4827900
src/analyzer/request-analyzer.js
@@ -16,7 +16,7 @@ class RequestAnalyzer {
16
requestContext.params = this.computeParamsJsonpCallbackScore(requestContext.params);
17
18
// 选出其中可能性最大的一个参数作为jsonp callback参数
19
- if (requestContext.params && requestContext.params[0].jsonpCallbackScore > 0) {
+ if (requestContext.params && requestContext.params.length && requestContext.params[0].jsonpCallbackScore > 0) {
20
requestContext.params[0].isJsonpCallback = true;
21
}
22
0 commit comments