Skip to content

Cap recent XML-RPC entries when the count is zero or negative - #415

Merged
mraible merged 1 commit into
masterfrom
xmlrpc-recent-entries-cap
Dec 3, 2026
Merged

mraible merged 1 commit into
masterfrom
xmlrpc-recent-entries-cap

Conversation

@mraible

@mraible mraible commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Blogger and MetaWeblog getRecentPosts cap a positive count at 200 entries, but a count of zero or less returns every entry in the weblog.

  • A count of zero or less now returns at most 200 entries too, matching 6.1.8 (ae8bf7d).
  • XMLRPCWeblogPermissionTest gets the same checks as on 6.1.x.

Blogger and MetaWeblog getRecentPosts capped a positive count at 200 entries, but a count of zero or less returned every entry of the weblog. It now returns at most 200 in that case too, as in 6.1.8 (ae8bf7d), and XMLRPCWeblogPermissionTest gets the same checks.
@mraible mraible added the 7.0.0 label Dec 3, 2026

@snoopdave snoopdave left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — caps zero and negative getRecentPosts limits at DRAFT_SCAN_CAP (200) across both Blogger and MetaWeblog handlers, matching 6.1.8, with regression tests.

@mraible
mraible merged commit 2e78738 into master Dec 3, 2026
9 checks passed
@mraible
mraible deleted the xmlrpc-recent-entries-cap branch December 3, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants