From: Andrew Dolgov Date: Sun, 18 Sep 2005 13:15:10 +0000 (+0100) Subject: OPML import fix from Thomas X-Git-Tag: 1.0.5~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d212ce0e935ed14b30b70b07168977ba35e9e8b6;p=tt-rss.git OPML import fix from Thomas --- diff --git a/opml.php b/opml.php index 10d5ca8b..e8c9c9b7 100644 --- a/opml.php +++ b/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;