alanshaw/david-www

[Error] Unhandled "type" parameter errors

Open

#363 建立於 2017年1月25日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)JavaScript (733 star) (177 fork)batch import
bughelp wanted

描述

The input needs to be sanitized !

$ curl http://localhost:1337/alanshaw/grunt-jsio?type=()
SyntaxError: Unexpected token < in JSON at position 0
   at JSON.parse (<anonymous>)
   at [My PATH]/david-www/node_modules/node-fetch/lib/body.js:48:15
   at process._tickCallback (internal/process/next_tick.js:103:7)

貢獻者指南