basic sanity checking in OPML import

This commit is contained in:
Andrew Dolgov 2005-09-02 16:41:24 +01:00
parent 16a7aacd56
commit f179a35d12
1 changed files with 2 additions and 0 deletions

View File

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