Opened 18 years ago
Closed 18 years ago
#9192 closed defect (bug) (fixed)
Bad regex in function rss_enclosure() of feed.php ?
| Reported by: | beaudinlecours | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7.2 |
| Component: | Feeds | Version: | 2.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
wp-includes/feed.php
function rss_enclosure()
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".
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [10615]) Fix regex in function rss_enclosure(), fixes #9192