client/general: improve URL escaping

Specifically, cater for /, + and % in URL components.
This commit is contained in:
rr-
2016-09-04 01:25:19 +02:00
parent a22fe306d1
commit 7fa8593b0a
15 changed files with 39 additions and 26 deletions

View File

@ -120,7 +120,7 @@ class PostListController {
module.exports = router => {
router.enter(
'/posts/:parameters?',
'/posts/:parameters(.*)?',
(ctx, next) => { misc.parseUrlParametersRoute(ctx, next); },
(ctx, next) => { ctx.controller = new PostListController(ctx); });
};