Merge pull request #3321 from mmosemmle/jsonp_fix

Fix jsonp checking
This commit is contained in:
John McLear 2018-02-08 16:19:04 +00:00 committed by GitHub
commit f8e7a24f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ var apiCaller = function(req, res, fields) {
apiLogger.info("RESPONSE, " + req.params.func + ", " + response);
//is this a jsonp call, if yes, add the function call
if(req.query.jsonp && isVarName(response))
if(req.query.jsonp && isVarName(req.query.jsonp))
response = req.query.jsonp + "(" + response + ")";
res._____send(response);