RocksonZeta / koa-validate

validate koa request params and format request params
https://github.com/RocksonZeta/koa-validate
MIT License
284 stars 32 forks source link

decodeURI/decodeURIComponent need to catch malformed URIs #4

Closed danneu closed 9 years ago

danneu commented 9 years ago
app.post('/', function*() {
  this.checkBody('test').notEmpty().decodeURIComponent().isUrl();
})

$ http --form POST localhost:3000 test=%
URIError: URI malformed
RocksonZeta commented 9 years ago

this problem has fixed in 0.2.6. thank you!