Authored by yyq

fix params escape

... ... @@ -10,7 +10,8 @@ const _ = require('lodash');
const utils = require('../../utils');
const helpers = global.yoho.helpers;
const listParamsProcess = require('../../utils/list-params-process');
const stringProcess = require('../../utils/string-process');
// const stringProcess = require('../../utils/string-process');
/**
* 解析url规则中的参数
... ... @@ -138,11 +139,11 @@ const resolvePathParams = (req, res, next) => {
_.assign(req.query, req.params);
}
if (req.query) {
_.forEach(req.query, (perParam, index) => {
req.query[index] = stringProcess.paramsFilter(perParam);
});
}
// if (req.query) {
// _.forEach(req.query, (perParam, index) => {
// req.query[index] = stringProcess.paramsFilter(perParam);
// });
// }
return next();
};
... ...