mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:45:56 +00:00
OPML import fix from Thomas
This commit is contained in:
11
opml.php
11
opml.php
@@ -36,8 +36,15 @@
|
||||
function startElement($parser, $name, $attrs) {
|
||||
|
||||
if ($name == "OUTLINE") {
|
||||
$title = db_escape_string($attrs['TEXT']);
|
||||
$url = db_escape_string($attrs['XMLURL']);
|
||||
if ($name == "OUTLINE") {
|
||||
|
||||
$title = $attrs["TEXT"];
|
||||
$url = $attrs["XMLURL"];
|
||||
|
||||
if (!$title) {
|
||||
$title = $attrs['TITLE'];
|
||||
}
|
||||
}
|
||||
|
||||
if (!$title || !$url) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user