[wp-trac] [WordPress Trac] #53899: Escaping strings and url

WordPress Trac noreply at wordpress.org
Mon Aug 9 08:53:10 UTC 2021


#53899: Escaping strings and url
-------------------------+------------------------------
 Reporter:  vishitshah   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by audrasjb):

 * version:  trunk =>


Comment:

 Thanks for the ticket and patch,

 Just noting that the content of `$active_class` is generated by the
 following code:
 {{{
         $active_class = '';
         if ( $theme['active'] ) {
                 $active_class = ' active';
         }
 }}}

 Therefore, there is no way to anyone one to inject anything in this
 variable, so the current code seems 100% safe :)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53899#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list