@ -62,7 +62,7 @@ middleware.addSlug = function(req, res, next) {
if (err || !slug || slug === id + '/') {
return next(err);
}
res.redirect(name + slug);
res.redirect(name + encodeURI(slug));
});
@ -16,7 +16,6 @@
login_strategies = [];
function logout(req, res) {
if (req.user && parseInt(req.user.uid, 10) > 0) {
winston.info('[Auth] Session ' + req.sessionID + ' logout (uid: ' + req.user.uid + ')');