[wp-trac] [WordPress Trac] #12045: Header parsing in /wp-includes/rss.php sometimes receives Array instead of String

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 22 03:51:06 UTC 2010


#12045: Header parsing in /wp-includes/rss.php sometimes receives Array instead of
String
--------------------------+-------------------------------------------------
 Reporter:  wpmuguru      |       Owner:  dd32
     Type:  defect (bug)  |      Status:  new 
 Priority:  normal        |   Milestone:  3.0 
Component:  HTTP          |     Version:      
 Severity:  normal        |    Keywords:      
--------------------------+-------------------------------------------------

Comment(by dd32):

 An array of headers will be returned in the event that a header is
 duplicated in the response.

 There was a bug in 2.9 with Fopen and redirects (or proxies) which would
 result in multiple headers being returned which could cause this.

 There's a bug i just noticed in the array returning however if there are
 >2 items of any of the headers in there..

 The code in question here, in the RSS code, probably needs to be updated
 to only return a String. Some docs may need to be updated to reflect the
 array returning of the function as well..

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12045#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list