Skip to content

Commit

Permalink
fix: potential insufficient path validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rofe committed Mar 16, 2023
1 parent 1e9b1eb commit f76bd95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/newrelic/monitor_script.js
Expand Up @@ -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) {
Expand Down

0 comments on commit f76bd95

Please sign in to comment.