[wp-trac] [WordPress Trac] #12836: _deep_replace can cause infinite loop

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 4 02:16:59 UTC 2010


#12836: _deep_replace can cause infinite loop
--------------------------+-------------------------------------------------
 Reporter:  mdawaffe      |       Owner:                  
     Type:  defect (bug)  |      Status:  new             
 Priority:  low           |   Milestone:  3.0             
Component:  General       |     Version:  3.0             
 Severity:  major         |    Keywords:  has-patch commit
--------------------------+-------------------------------------------------
 Calling {{{_deep_replace( $search, $subject )}}} on an array
 {{{$subject}}} can cause an infinite loop since {{{strpos( array(), 'foo'
 )}}} will return NULL.

 Patch attached.

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


More information about the wp-trac mailing list