alanshaw/david-www

[Error] Unhandled "type" parameter errors

Open

#363 aperta il 25 gen 2017

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (177 fork)batch import
bughelp wanted

Metriche repository

Star
 (733 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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)

Guida contributor