[wp-trac] [WordPress Trac] #2683: rss-functions.php incorrectly handles multiple links in atom format

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 22 15:06:39 GMT 2006


#2683: rss-functions.php incorrectly handles multiple links in atom format
-----------------------+----------------------------------------------------
       Id:  2683       |      Status:  new                     
Component:  General    |    Modified:  Sat Apr 22 15:06:39 2006
 Severity:  minor      |   Milestone:                          
 Priority:  normal     |     Version:  2.0.2                   
    Owner:  anonymous  |    Reporter:  elidourado              
-----------------------+----------------------------------------------------
 rss-functions.php parses Atom feeds by abstracting them to RSS feeds.
 Atom feeds can have multiple link elements, and rss-functions.php tries to
 handle this by selecting only the links that have the attribute
 'rel'=='alternate'.  The problem is created when the atom feed has
 multiple link elements with that attribute set.  For example, a feed might
 have /feed/entry/link/$attr[rel]='alternate' AND
 /feed/entry/source/link/$attr[rel]='alternate'.  Currently, rss-
 functions.php inadvertantly concatenates the two together.

 I discovered this when using a shared feed from Google Reader in an RSS
 widget.

 Example feed:
 http://www.google.com/reader/public/atom/user/07602940155368702956/label/www

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2683>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list