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:
James George 2025-10-30 23:06:42 +05:30 committed by GitHub
parent a573db5937
commit dae02c839f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`,