fixed maintenance mode page not working with new CSRF implementation, #2424

v1.18.x
Julian Lam 10 years ago
parent b665aeee83
commit 5292a47a96

@ -465,10 +465,12 @@ middleware.maintenanceMode = function(req, res, next) {
res.status(503);
if (!isApiRoute.test(req.url)) {
middleware.buildHeader(req, res, function() {
res.render('maintenance', {
site_title: meta.config.title || 'NodeBB',
message: meta.config.maintenanceModeMessage
middleware.applyCSRF(req, res, function() {
middleware.buildHeader(req, res, function() {
res.render('maintenance', {
site_title: meta.config.title || 'NodeBB',
message: meta.config.maintenanceModeMessage
});
});
});
} else {

Loading…
Cancel
Save