Skip to content

Reject invalid network id filters - #2

Open
samsamtrum wants to merge 1 commit into
0xCurvy:mainfrom
samsamtrum:reject-invalid-network-id-filters
Open

Reject invalid network id filters#2
samsamtrum wants to merge 1 commit into
0xCurvy:mainfrom
samsamtrum:reject-invalid-network-id-filters

Conversation

@samsamtrum

Copy link
Copy Markdown

filterNetworks treated any string that Number(...) could parse as a network id. That meant inputs like 1.5 or 0x1 entered the id path, and nonfinite numeric values could fall through into slug handling.

This tightens id filters to finite numbers or decimal strings with only optional .0 padding, and adds coverage for malformed id filters.

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.

1 participant