mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fix two crashes
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = function(middleware) {
|
||||
req = this.req,
|
||||
defaultFn = function(err, str){
|
||||
if (err) {
|
||||
return req.next(err);
|
||||
return next(err);
|
||||
}
|
||||
|
||||
self.send(str);
|
||||
@@ -96,4 +96,4 @@ module.exports = function(middleware) {
|
||||
return parts.join(' ');
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user