Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#41758 closed defect (bug) (duplicate)

Black SEO, returning http code 200 if is page biger number

Reported by: talean's profile Talean Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

Fixing black seo access.
Example using page https://wordpress.org/news/page/9223372036854775807/

Return all response HTTP CODE 200

Reference bug: src/wp-includes/class-wp-query.php:2400 (verify PHP_INT_MAX if using intval)
Example execute code: intval((9223372036854775807-1) * 10), returning 0.
Resulting LIMIT 0, 10. Always returning articles

Attachments (1)

class-wp-query.php.patch (821 bytes) - added by Talean 7 years ago.
Resolving example (not tested) :)

Download all attachments as: .zip

Change History (2)

@Talean
7 years ago

Resolving example (not tested) :)

#1 @SergeyBiryukov
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version trunk deleted

Hi @Talean, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #28081.

It was supposed to be fixed in #11694, but the fix was incomplete: the sanity check was added for posts that use the <!--nextpage--> tag, but those that don't use it are still affected.

Note: See TracTickets for help on using tickets.