alanshaw/david-www

[Error] Unhandled "type" parameter errors

Open

#363 opened on Jan 25, 2017

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (177 forks)batch import
bughelp wanted

Repository metrics

Stars
 (733 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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)

Contributor guide