From f179a35d12b50f5c1667726236c2d8e015861ef6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 Sep 2005 16:41:24 +0100 Subject: basic sanity checking in OPML import --- opml.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opml.php b/opml.php index c17821130..f3dd34ef4 100644 --- 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 $title ($url)... "; $result = pg_query("SELECT id FROM ttrss_feeds WHERE -- cgit v1.2.3