WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#49482 new defect (bug)

Non-english slug can sometimes cause an error in WordPress query

Reported by: panjmp Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3.2
Component: Database Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

The error is

Warning: vsprintf(): Too few arguments in wp-includes/wp-db.php on line 1397

I found the root cause that if the encoded slug contains the %f or %[0-9]f. it will be converted to capital F (wp-db.php:1359) and will not be properly escaped (wp-db.php:1361)

I found a ticket here #49140 but it has been closed.

Change History (1)

#1 @SergeyBiryukov
6 months ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.