diff options
author | Andrew Dolgov <[email protected]> | 2005-09-18 14:15:10 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-09-18 14:15:10 +0100 |
commit | d212ce0e935ed14b30b70b07168977ba35e9e8b6 (patch) | |
tree | efdfb2b21827e79bd42392c477d8a70fc05f2cc3 /opml.php | |
parent | 49a0dd3d3fe107663f94d54cf9eb97e8251389be (diff) |
OPML import fix from Thomas
Diffstat (limited to 'opml.php')
-rw-r--r-- | opml.php | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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; |