]> git.wh0rd.org - tt-rss.git/commitdiff
basic sanity checking in OPML import
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 2 Sep 2005 15:41:24 +0000 (16:41 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 2 Sep 2005 15:41:24 +0000 (16:41 +0100)
opml.php

index c178211309b5c8c60bfffde9cc4f1c6bc91f88b9..f3dd34ef47ebb6a4d2ba164615ff727471147173 100644 (file)
--- a/opml.php
+++ b/opml.php
@@ -36,6 +36,8 @@
                        $title = pg_escape_string($attrs['TEXT']);
                        $url = pg_escape_string($attrs['XMLURL']);
 
+                       if (!$title || !$url) return;
+
                        print "Feed <b>$title</b> ($url)... ";
 
                        $result = pg_query("SELECT id FROM ttrss_feeds WHERE