mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
dont escape the query that is send to search escape on the way out
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user