Skip to content

Commit

Permalink
remove validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Jan 9, 2024
1 parent c9da2e4 commit 5a82c3c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/routes/bins/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5a82c3c

Please sign in to comment.