[wp-trac] [WordPress Trac] #11781: there is potential for odd behavior in two queries in ms-edit.php

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 19:57:15 UTC 2010


#11781: there is potential for odd behavior in two queries in ms-edit.php
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:     
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  3.0
Component:  Multisite          |     Version:  3.0
 Severity:  normal             |    Keywords:     
-------------------------------+--------------------------------------------
 there are two queries in the file that manually insert serialized data in
 the database:

 {{{
 'a:1:{s:" . strlen( $role ) . ":\"" . $role . "\";b:1;}')"
 }}}

 considering #9663 and the fact that the part of php isn't always mb_string
 safe, we ought to use the serialize() function instead (or better yet, the
 API).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11781>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list