You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add doc ID validation to prevent arbitrary URL document creation
- Add isValidDocId() validation function to generateDocId.ts
- Update App.tsx to validate doc IDs and redirect invalid ones to Landing
- Update Landing.tsx to show error message for invalid document IDs
- Add doc ID format validation to SharingController endpoints
This prevents documents from being created when users visit arbitrary
URLs like /somedoc. Valid IDs must be exactly 21 characters using
URL-safe characters (A-Za-z0-9_-) matching the nanoid format.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments