Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const CHAT_EVENT_TYPES = new Set(['MESSAGE', 'ADDED_TO_SPACE', 'REMOVED_FROM_SPA

/** Collapse control chars (incl. newlines) and cap length before logging untrusted text — prevents log forging. */
function logSafe(value: unknown): string {
return String(value).replace(/\p{Cc}/gu, ' ').slice(0, 200);
// CodeQL only recognises an explicit line-break replace as cleaning.
return String(value).replace(/[\r\n]/g, ' ').replace(/\p{Cc}/gu, ' ').slice(0, 200);
}

export function createServer(deps: ServerDeps): Express {
Expand Down
2 changes: 1 addition & 1 deletion tests/scheduler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('Scheduler', () => {

it('prompts each participant at prompt time in their own timezone', async () => {
const { repo, adapter, scheduler, clock } = await makeStack();
const standup = await seedStandup(repo, { deadlineTime: '18:00' });
await seedStandup(repo, { deadlineTime: '18:00' });
await repo.setTimezoneForUser('users/bob', 'Europe/London');

clock.set('2026-06-10T09:30');
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/standup/tabs.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ afterEach(() => vi.unstubAllGlobals());

describe('standup settings tab', () => {
it('saves the schedule, questions and mood', async () => {
const { patches, calls } = server();
const { patches } = server();
renderApp('/standups/1/settings');
const user = userEvent.setup();
expect(await screen.findByLabelText('Prompt time')).toHaveValue('09:30');
Expand Down
Loading