Commit 71e5875
authored
fix(tags): use parsePaginationParam to clamp popular-tags limit (#377)
Replaces ad-hoc Math.min/Math.max/parseInt with parsePaginationParam
so limit=0 clamps to 1, malformed values fall back to 50, and
oversized values cap at 200.
Fixes #3601 parent d5cdc90 commit 71e5875
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments