fix: prevent log injection
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
a573db5937
commit
dae02c839f
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ export class MockRequestGuard implements CanActivate {
|
|||
|
||||
if (E.isLeft(mockServerResult)) {
|
||||
console.warn(
|
||||
`Mock server lookup failed for subdomain: ${mockServerSubdomain}, error: ${mockServerResult.left}`,
|
||||
`Mock server lookup failed for subdomain: ${String(mockServerSubdomain).replace(/\r|\n/g, "")}, error: ${mockServerResult.left}`,
|
||||
);
|
||||
throw new NotFoundException(
|
||||
`Mock server '${mockServerSubdomain}' not found`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue