Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#49482 new defect (bug)

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

Reported by: panjmp's profile 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
4 years ago

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