This post originated from an RSS feed registered with Ruby Buzz
by Adam Green.
Original Post: Fixing relative URLs in the reading list
Feed Title: ruby.darwinianweb.com
Feed URL: http://www.nemesis-one.com/rss.xml
Feed Description: Adam Green's Ruby development site
I've discovered that lots of blogs are using relative addresses within the <link> tags that I use for autodiscovery of feeds. For example, they are using a URL of "/rss.xml," instead of "http://myblog.com/rss.xml". This is a no no, and since XML people are a rather anal group, they refuse to convert these to absolute addreses when they write aggregators. Instead feeds with relative addresses are just ignored. So I've modified by OPML creation script to convert relative addresses to absolute. The changed section of code is below.
tmopml.rb
# Find the first feed link. if tag.match(('rel=\"alternate\"') && ('application\/rss\+xml'||'application\/rdf\+xml'||'text\/xml'||'application\/atom\+xml'||'application\/x.atom\+xml'||'application\/x-atom\+xml') ) && (not feedfound)