mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
fixed #1584
This commit is contained in:
@@ -62,7 +62,7 @@ middleware.addSlug = function(req, res, next) {
|
|||||||
if (err || !slug || slug === id + '/') {
|
if (err || !slug || slug === id + '/') {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
res.redirect(name + slug);
|
res.redirect(name + encodeURI(slug));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
login_strategies = [];
|
login_strategies = [];
|
||||||
|
|
||||||
|
|
||||||
function logout(req, res) {
|
function logout(req, res) {
|
||||||
if (req.user && parseInt(req.user.uid, 10) > 0) {
|
if (req.user && parseInt(req.user.uid, 10) > 0) {
|
||||||
winston.info('[Auth] Session ' + req.sessionID + ' logout (uid: ' + req.user.uid + ')');
|
winston.info('[Auth] Session ' + req.sessionID + ' logout (uid: ' + req.user.uid + ')');
|
||||||
|
|||||||
Reference in New Issue
Block a user