mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(core): Upgrade to express 5 to address CVE-2024-52798 (#14332)
This commit is contained in:
committed by
GitHub
parent
02d11b5e7a
commit
4110f3188e
@@ -123,6 +123,10 @@ export function createWebhookHandlerFor(webhookManager: IWebhookManager) {
|
||||
const handler = new WebhookRequestHandler(webhookManager);
|
||||
|
||||
return async (req: WebhookRequest | WebhookOptionsRequest, res: express.Response) => {
|
||||
const { params } = req;
|
||||
if (Array.isArray(params.path)) {
|
||||
params.path = params.path.join('/');
|
||||
}
|
||||
await handler.handleRequest(req, res);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user