basic sanity checking in OPML import
This commit is contained in:
parent
16a7aacd56
commit
f179a35d12
2
opml.php
2
opml.php
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue