]> git.wh0rd.org Git - tt-rss.git/commitdiff
use rewrite_relative_url() in get_feeds_from_html() instead of using that hack
authorChristian Weiske <cweiske@cweiske.de>
Wed, 10 Nov 2010 22:13:34 +0000 (23:13 +0100)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Nov 2010 06:44:28 +0000 (09:44 +0300)
functions.php

index a52dafddd24f92eb86a6b02bd0ed91925bd7054d..cd6fafd115d30959cd941e834d85bef18c80dda3 100644 (file)
                                if ($title == '') {
                                        $title = $entry->getAttribute('type');
                                }
-                               $feedUrl = $entry->getAttribute('href');
-                               if (strpos($feedUrl, '://') === false) {
-                                       //no protocol -> relative URL
-                                       $feedUrl = $baseUrl . $feedUrl;
-                               }
+                               $feedUrl = rewrite_relative_url(
+                                       $baseUrl, $entry->getAttribute('href')
+                               );
                                $feedUrls[$feedUrl] = $title;
                        }
                }