From 5a82c3c43327720df01165da86af14edf7553cf5 Mon Sep 17 00:00:00 2001 From: jackkav Date: Tue, 9 Jan 2024 13:57:26 +0100 Subject: [PATCH] remove validation --- lib/routes/bins/update.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/routes/bins/update.js b/lib/routes/bins/update.js index fc889019..519bf0a4 100644 --- a/lib/routes/bins/update.js +++ b/lib/routes/bins/update.js @@ -25,17 +25,6 @@ module.exports = function (req, res, next) { return; } - const isAlphanumericAndSlashes = /^[a-zA-Z0-9\/]+$/i.test(path); - const isPathSupported = isAlphanumericAndSlashes && !path.includes("//"); - - if (path && !isPathSupported) { - res.body = { - errors: `Unsupported path ${path}`, - }; - next(); - return; - } - // provide optional values before validation mock.redirectURL = ""; mock.bodySize = 0;