Missed one lcasing

Also anyone else nervous about arbitrary hook execution here?
v1.18.x
Dan Rowe 11 years ago
parent 437379413e
commit 94fdeb2378

@ -9,7 +9,7 @@ var nconf = require('nconf'),
PluginRoutes = function(app) {
app.get('/plugins/fireHook', function(req, res) {
// GET = filter
Plugins.fireHook('filter:' + req.query.hook, req.query.args, function(err, returnData) {
plugins.fireHook('filter:' + req.query.hook, req.query.args, function(err, returnData) {
if (typeof returnData === 'object') {
res.json(200, returnData);
} else {

Loading…
Cancel
Save