feat(core): Upgrade to express 5 to address CVE-2024-52798 (#14332)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-04-03 13:43:52 +02:00
committed by GitHub
parent 02d11b5e7a
commit 4110f3188e
22 changed files with 465 additions and 327 deletions

View File

@@ -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);
};
}