Third audit: security fixes and server-side scalability
Security: - docx unzip reads each part once (a repeated entry was a zip bomb) - request files must be named for their type (no PDF named .html) - team roster hidden when its organization is unpublished - /people?ids= hides draft organizations, takes 200 ids - v_events takes the first published host and reads event_hosts directly (migration 059, plus an index on person_awards.event_id) - group accounts refused while access groups are off; group sync can't undo a superadmin's disable - 64 KB body limit on login, feedback and csp-report - Drive pick-up races no longer 500; random upload boundary Scalability: - /events filters by scope, host, status and type on the server; Home no longer prefetches every event - /organizations leaves out bodies and leadership; the map's group panel fetches its own - admin lists page with Show more and a real count - content request record search and the newsletter's post list ask the server Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0bb4b8685f
commit
f99010252f
18 changed files with 229 additions and 96 deletions
|
|
@ -77,12 +77,12 @@ const BANDS: Record<FrontPageSectionKey, (props: BandProps) => ReactNode> = {
|
|||
export default function Home() {
|
||||
const { data: page, error, reload } = useFrontPage()
|
||||
|
||||
// The bands below ask for events and the timeline once the front
|
||||
// page has said which of them to show. Start both now, alongside it:
|
||||
// api.ts hands the same request to the bands when they mount, so
|
||||
// the page waits for one round trip instead of two.
|
||||
// The bands below ask for the timeline once the front page has said
|
||||
// which of them to show. Start it now, alongside it: api.ts hands the
|
||||
// same request to the band when it mounts, so the page waits for one
|
||||
// round trip instead of two. Events aren't fetched ahead: each band
|
||||
// asks the server for only its own, so there's no one list to start.
|
||||
useEffect(() => {
|
||||
get('/events').catch(() => {})
|
||||
get('/history').catch(() => {})
|
||||
}, [])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue