Skip to content

Add word filter, input validation, thumbnail fix, double-save fix, - #2674

Merged
tja9674 merged 2 commits into
devfrom
tja9674-reactions
Nov 2, 2026
Merged

tja9674 merged 2 commits into
devfrom
tja9674-reactions

Conversation

@tja9674

@tja9674 tja9674 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Blocked words filter
Input validation (security)
Project thumbnails
Profile editor saving
Gallery uploads
Server Tests

…lti-image upload

Blocked words filter
- English word list (LDNOOBW, CC-BY-4.0, credited in shared/blocked-words.NOTICE.md)
  plus a team-editable custom list, in shared/
- Shared matcher (shared/blocked-words.ts): whole-word matching that also catches
  look-alike characters, split-up letters, stretched letters and plurals
- Server rejects blocked text on project, profile, job, link, image and video
  endpoints (noBlockedWords middleware); non-text values are rejected too so
  Prisma's {set} syntax can't hide a blocked word
- Project and profile editors check the same list and show the message before saving

Input validation (security)
- validateBody middleware: allowlists fields and value types on the routes that
  pass the request body straight to Prisma (member update, member request update,
  profile and project social link updates). Closes a hole where a project owner
  could write to a member's user record through nested Prisma updates, and where
  links could be moved onto other users or projects

Project thumbnails
- Editor now uses the new image's own local id for the thumbnail (and the first
  remaining image after a delete), so the id swap on save actually matches and the
  thumbnail gets set
- Server rejects a thumbnail image that belongs to another project

Profile editor saving
- Ignore extra Save presses while a save is running and show the spinner
- saveChanges takes the queued changes and empties the queue before sending, so
  overlapping saves no longer add every gallery item more than once
- Tests for the data manager

Gallery uploads
- "Upload multiple images (no cropping)" button under the image grid in the project
  Media tab and profile Gallery tab
- Gallery tab keeps a live list of new images so several adds in a row all show

Tests
- Server: blocked words matcher and middleware, validateBody, thumbnail ownership

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tja9674
tja9674 merged commit 69049ae into dev Nov 2, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Testing — f28cf13a Deployed Nov 2, 2026 by tja9674 via test-client #1975
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants