From d212ce0e935ed14b30b70b07168977ba35e9e8b6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 18 Sep 2005 14:15:10 +0100 Subject: OPML import fix from Thomas --- opml.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/opml.php b/opml.php index 10d5ca8be..e8c9c9b79 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; -- cgit v1.2.3