Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jun 19, 2024
1 parent 7f47220 commit 6dee762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/middleware/validateurl.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const validateURL = (request, response, next) => {
const testDomain = nconf.get('validTestDomains');

// If its an API call using script, do not validate the URL
if (request.body.api.scripting) {
if (request.body.api && request.body.api.scripting) {
return next();
}

Expand Down

0 comments on commit 6dee762

Please sign in to comment.