[wp-trac] [WordPress Trac] #9192: Bad regex in function
rss_enclosure() of feed.php ?
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 20 18:54:22 GMT 2009
#9192: Bad regex in function rss_enclosure() of feed.php ?
----------------------------+-----------------------------------------------
Reporter: beaudinlecours | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.2
Component: Feeds | Version: 2.7
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
wp-includes/feed.php[[BR]]
function rss_enclosure()[[BR]]
line 409
$t = split('[ \t]', trim($enclosure[2]) );
The split function doesn't work with mime-type "application/anything".
Regex seems faulty.
This seems to work : $t = split(' ', trim($enclosure[2]) );
Found by using 'Podpressing' plugin and using PDF enclosures in a podcast.
The result was an invalidate RSS feed with enclosures of mime type =
"applica".
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9192>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list