mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:45:56 +00:00
basic sanity checking in OPML import
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user