Skip to content

Commit

Permalink
Merge pull request #155 from pantheon-systems/PCC-881-security-scan-f…
Browse files Browse the repository at this point in the history
…indings-polynomial-regular-expression-used-on-uncontrolled-data-pcc-sdk

Resolve security issue "Polynomial regular expression used on uncontrolled data" by using positive lookahead in regex.
  • Loading branch information
kevinstubbs authored Dec 28, 2023
2 parents 8d343af + 7006045 commit 432dc41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/core/pantheon-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class PantheonClient {
// It defaults to our production API endpoint. In a future release it will
// be a more human-friendly URL.
const pccHost =
config.pccHost?.replace(/\/+$/, "") ||
config.pccHost?.replace(/\/(?<=\/)\/*$/, "") ||
"https://pcc-gfttxsojwq-uc.a.run.app";

this.host = pccHost;
Expand Down

0 comments on commit 432dc41

Please sign in to comment.