[wp-trac] [WordPress Trac] #49482: Non-english slug can sometimes cause an error in WordPress query

WordPress Trac noreply at wordpress.org
Thu Feb 20 08:49:16 UTC 2020


#49482: Non-english slug can sometimes cause an error in WordPress query
--------------------------+-----------------------------
 Reporter:  panjmp        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  5.3.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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 https://core.trac.wordpress.org/ticket/49140 but it
 has been closed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49482>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list