Make WordPress Core

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)

#1 @azaozz
18 years ago

  • Resolutionfixed
  • Status newclosed

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

#2 @lloydbudd
18 years ago

  • Resolution fixed
  • Status closedreopened

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

#3 @azaozz
18 years ago

  • Resolutionfixed
  • Status reopenedclosed

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

Note: See TracTickets for help on using tickets.