The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(db): type the cleaned cookies for the strict compiler
Maurice82195c7418c5
diff --git a/server/src/nest/common/nul-free-input.ts b/server/src/nest/common/nul-free-input.tsindex 7ffb1fa92..593f19edd 100644--- a/server/src/nest/common/nul-free-input.ts+++ b/server/src/nest/common/nul-free-input.ts@@ -49,9 +49,12 @@ export function withoutEncodedNul(url: string): string {export function nulFreeRequest(req: Request, _res: Response, next: NextFunction): void {req.url = withoutEncodedNul(req.url);if (req.body !== undefined) req.body = nulFreeInput(req.body);- const withCookies = req as Request & { cookies?: unknown; signedCookies?: unknown };- if (withCookies.cookies !== undefined) withCookies.cookies = nulFreeInput(withCookies.cookies);- if (withCookies.signedCookies !== undefined) withCookies.signedCookies = nulFreeInput(withCookies.signedCookies);+ const withCookies = req as Request & { cookies?: Record<string, unknown>; signedCookies?: Record<string, unknown> };+ if (withCookies.cookies !== undefined)+ withCookies.cookies = nulFreeInput(withCookies.cookies) as Record<string, unknown>;+ if (withCookies.signedCookies !== undefined) {+ withCookies.signedCookies = nulFreeInput(withCookies.signedCookies) as Record<string, unknown>;+ }next();}