From f76bd95bcca553c9ddb36e0af66cfd6398479f4d Mon Sep 17 00:00:00 2001 From: rofe Date: Thu, 16 Mar 2023 16:29:14 +0100 Subject: [PATCH] fix: potential insufficient path validation --- src/newrelic/monitor_script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newrelic/monitor_script.js b/src/newrelic/monitor_script.js index 1e3c855..5981511 100644 --- a/src/newrelic/monitor_script.js +++ b/src/newrelic/monitor_script.js @@ -17,7 +17,7 @@ const assert = require('assert'); const url = '$$$URL$$$'; const { host, pathname } = new URL(url); -const hlx3 = host.endsWith('.amazonaws.com') && pathname.includes('helix3'); +const hlx3 = host.endsWith('.amazonaws.com') && pathname.includes('/helix3/'); const headers = {}; if (hlx3) {