Skip to content

Reject partially numeric search parameters - #94

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
moyuziya:codex/strict-query-integers
Sep 12, 2026
Merged

Reject partially numeric search parameters#94
ralyodio merged 1 commit into
profullstack:masterfrom
moyuziya:codex/strict-query-integers

Conversation

@moyuziya

Copy link
Copy Markdown
Contributor

Malformed numeric query strings such as limit=25oops, offset=10.5, and salaryMin=50000usd currently accept the numeric prefix and silently change search results. Require the complete trimmed value to be a signed base-10 integer before applying the existing fallback and clamping rules. Valid signs, leading zeroes, bounds and other search filters remain unchanged.

Fixes #89. This is an independent implementation of the reported issue.

Validation: node --test test/query-integers.test.ts on Node 24.19.0: 8 failed / 3 passed before, 11 passed after. Includes malformed suffixes, decimal/exponent/hex forms, empty/non-finite input, valid bounds, and URL reconstruction. Full application build, database tests and browser checks were not run locally; this change is limited to the pure query parser.

If this additional fix qualifies for the advertised per-fix reward, please confirm its amount and settlement with the platform application. It is separate from PR #78 and does not request that earlier reward twice.

@ralyodio
ralyodio merged commit 3e226b3 into profullstack:master Sep 12, 2026
4 checks passed
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.

Malformed numeric search parameters are partially accepted

2 participants