Unverified Commit f8e7a24f authored by John McLear's avatar John McLear Committed by GitHub
Browse files

Merge pull request #3321 from mmosemmle/jsonp_fix

Fix jsonp checking
parents 0c9475e3 a2992b36
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment