WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#9192 closed defect (bug) (fixed)

Bad regex in function rss_enclosure() of feed.php ?

Reported by: beaudinlecours 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)

comment:1 azaozz5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10615]) Fix regex in function rss_enclosure(), fixes #9192

comment:2 lloydbudd5 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopen, fixed on trunk, current target is 2.7.2 and currently only fixed on trunk.

comment:3 azaozz5 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [10616]) Fix regex in function rss_enclosure(), fixes #9192 for 2.7

Note: See TracTickets for help on using tickets.