add missing radix parameter to parseInt#38541
add missing radix parameter to parseInt#38541laky241 wants to merge 1 commit intoRocketChat:masterfrom
Conversation
|
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
WalkthroughAdds explicit radix parameter (base 10) to two Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (2)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixed a bug in getPaginationItems() where parseInt() was called without specifying a radix parameter. This helper function is used by all API endpoints that support pagination.
If a user sends offset=08 or count=09 as query parameters, they could receive incorrect pagination results in older environments.
The Fix:
Added explicit radix parameter 10 to both parseInt()
Changed files:
apps/meteor/app/api/server/helpers/getPaginationItems.ts
Summary by CodeRabbit