Files
silo-server/web/src/lib/authRedirect.ts
T

13 lines
249 B
TypeScript
Raw Normal View History

2026-05-22 20:26:11 -04:00
export function sanitizeAuthRedirect(value: string | null | undefined): string | null {
if (!value) {
return null;
}
if (!value.startsWith("/")) {
return null;
}
if (value.startsWith("//")) {
return null;
}
return value;
}