dont escape the query that is send to search escape on the way out

This commit is contained in:
barisusakli
2015-09-17 19:03:03 -04:00
parent 244c75f809
commit 6e66b32fe1
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,6 @@ searchController.search = function(req, res, next) {
return next();
}
req.params.term = validator.escape(req.params.term);
var page = Math.max(1, parseInt(req.query.page, 10)) || 1;
if (req.query.categories && !Array.isArray(req.query.categories)) {
req.query.categories = [req.query.categories];