[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 11:00:26 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 | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> 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.
New description:
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.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49482#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list