Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#49482 new defect (bug)

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

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

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
7 years ago

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