v1.18.x
barisusakli 10 years ago
parent 7ec8393004
commit d28fb153c7

@ -154,7 +154,13 @@ function getTemplatesListing(req, res, next) {
if (err) { if (err) {
return next(err); return next(err);
} }
config = JSON.parse(config.toString());
try {
config = JSON.parse(config.toString());
} catch (err) {
return next(err);
}
plugins.fireHook('filter:templates.get_config', config, next); plugins.fireHook('filter:templates.get_config', config, next);
}); });
}, },

Loading…
Cancel
Save