]> git.wh0rd.org Git - tt-rss.git/commitdiff
OPML import fix from Thomas
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 18 Sep 2005 13:15:10 +0000 (14:15 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 18 Sep 2005 13:15:10 +0000 (14:15 +0100)
opml.php

index 10d5ca8becd9ba429904bcea11b7b22f508bd22a..e8c9c9b79f1a6488a8ef2ec318c95d1d3afd3c68 100644 (file)
--- a/opml.php
+++ b/opml.php
        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;