From 070fe01463383dd0aac7e949926176eaff724418 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 20 Sep 2015 17:13:15 -0400 Subject: [PATCH] use unescaped tag to get data --- src/controllers/tags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/tags.js b/src/controllers/tags.js index 6c9654006f..89fb4e3311 100644 --- a/src/controllers/tags.js +++ b/src/controllers/tags.js @@ -15,11 +15,11 @@ tagsController.getTag = function(req, res, next) { async.waterfall([ function(next) { - topics.getTagTids(tag, 0, stop, next); + topics.getTagTids(req.params.tag, 0, stop, next); }, function(tids, next) { if (Array.isArray(tids) && !tids.length) { - topics.deleteTag(tag); + topics.deleteTag(req.params.tag); return res.render('tag', { topics: [], tag: tag,