Opened 17 years ago
Closed 17 years ago
#9192 closed defect (bug) (fixed)
Bad regex in function rss_enclosure() of feed.php ?
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.7.2 | Priority: | normal |
| Severity: | normal | Version: | 2.7 |
| Component: | Feeds | Keywords: | |
| Focuses: | Cc: |
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.
(In [10615]) Fix regex in function rss_enclosure(), fixes #9192