summaryrefslogtreecommitdiff
path: root/opml.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-18 14:15:10 +0100
committerAndrew Dolgov <[email protected]>2005-09-18 14:15:10 +0100
commitd212ce0e935ed14b30b70b07168977ba35e9e8b6 (patch)
treeefdfb2b21827e79bd42392c477d8a70fc05f2cc3 /opml.php
parent49a0dd3d3fe107663f94d54cf9eb97e8251389be (diff)
OPML import fix from Thomas
Diffstat (limited to 'opml.php')
-rw-r--r--opml.php11
1 files 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;