Skip to content

Comment author_handle has no max-length check #103

Description

@royalpinto007

Problem

A multi-kilobyte comment handle is accepted and stored, while submit/edit paths cap handles at 64 chars. Inconsistent and abusable.

Where

app/api/comments/route.ts (trim only, no max) vs lib/schemas/submit.ts (.max(64)).

Acceptance

Add a failing test first posting a 500-char handle, expecting 400 instead of 201. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

claimedSomeone asked first and is working on thisgood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions