diff --git a/api/index.js b/api/index.js index b7822f5..3cb779e 100644 --- a/api/index.js +++ b/api/index.js @@ -39,7 +39,6 @@ app.post("/run", upload.single("image"), async (req, res, next) => { if (!isValidJSON(req.body.data)) return res.sendStatus(400); const object = JSON.parse(req.body.data); - if (!magick.check(object.cmd)) return res.sendStatus(400); object.path = req.file ? req.file.path : null; diff --git a/binding.gyp b/binding.gyp index e32dc70..6fc0867 100644 --- a/binding.gyp +++ b/binding.gyp @@ -12,7 +12,7 @@ "libraries": [ "