]> git.wh0rd.org Git - tt-rss.git/commitdiff
another take on feed: stripping
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 20 Feb 2007 08:01:39 +0000 (09:01 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 20 Feb 2007 08:01:39 +0000 (09:01 +0100)
functions.php

index ece96d147af119af1269f15673353ea397566200..7c6e1d4e2a9c500113af97ae9b1c492d19899994 100644 (file)
                $feed_link = trim(preg_replace("/^feed:/", "", $feed_link));
 
                # check for feed://URL
-               if (strstr($feed_link, "//") == 0) {
+               if (strpos($feed_link, "//") === 0) {
                        $feed_link = "http:$feed_link";
                }