Skip to content

fix: improve limit option validation - #741

Merged
UlisesGascon merged 3 commits into
expressjs:1.xfrom
Phillip9587:fix-limit-option
Jul 7, 2026
Merged

UlisesGascon merged 3 commits into
expressjs:1.xfrom
Phillip9587:fix-limit-option

Conversation

@Phillip9587

Copy link
Copy Markdown
Member

Backport of #698

@Phillip9587
Phillip9587 requested a review from UlisesGascon July 6, 2026 16:01
@Phillip9587
Phillip9587 requested a review from bjohansebas July 6, 2026 16:05
@UlisesGascon UlisesGascon self-assigned this Jul 7, 2026
@UlisesGascon
UlisesGascon merged commit 3492672 into expressjs:1.x Jul 7, 2026
35 checks passed
@UlisesGascon UlisesGascon mentioned this pull request Jul 8, 2026
pstreef added a commit to moderne-backpatch-alliance/backpatch-body-parser that referenced this pull request Nov 22, 2026
Port of upstream "fix: improve limit option validation (expressjs#741)" from the
1.x branch: json, raw, text and urlencoded parsers now throw a TypeError
when the limit option does not parse to a byte count, instead of using
the null result as no limit. CI and HISTORY hunks left out.

Upstream-Commit: 3492672
Co-authored-by: Phillip Barta <barta.phillip@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants