Skip to content

Conversation

@chrissrogers
Copy link
Contributor

  • koa's query getter implements querystring#parse, which itself calls decodeURIComponent
  • if the data object passed contained a '%', the second decode here would throw a URIError.
  • to reproduce this, try putting a % sign into a test description.

- koa's [query getter](https://github.com/koajs/koa/blob/master/lib/request.js#L137) implements [querystring#parse](https://nodejs.org/api/querystring.html#querystring_querystring_parse_str_sep_eq_options), which already calls `decodeURIComponent`
- if the data object passed contained a '%', the second decode here would fail.
@stephenmathieson
Copy link
Contributor

travis failing??

@chrissrogers
Copy link
Contributor Author

Looks unrelated. I can't rerun save for force pushing though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants