alanshaw/david-www

[Error] Unhandled "type" parameter errors

Open

#363 geöffnet am 25. Jan. 2017

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (733 Stars) (177 Forks)batch import
bughelp wanted

Beschreibung

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