]> git.wh0rd.org Git - tt-rss.git/commitdiff
opml import: remove unneeded 250 character restriction on feed urls
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 26 Feb 2014 05:02:42 +0000 (09:02 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 26 Feb 2014 05:02:42 +0000 (09:02 +0400)
classes/opml.php

index 0a64272a3dfb2a680a1badaef7748adc7ea7efb4..c8c59e8a25448a72bd6caf7fad63526c165249e6 100644 (file)
@@ -257,8 +257,8 @@ class Opml extends Handler_Protected {
                $feed_title = $this->dbh->escape_string(mb_substr($attrs->getNamedItem('text')->nodeValue, 0, 250));
                if (!$feed_title) $feed_title = $this->dbh->escape_string(mb_substr($attrs->getNamedItem('title')->nodeValue, 0, 250));
 
-               $feed_url = $this->dbh->escape_string(mb_substr($attrs->getNamedItem('xmlUrl')->nodeValue, 0, 250));
-               if (!$feed_url) $feed_url = $this->dbh->escape_string(mb_substr($attrs->getNamedItem('xmlURL')->nodeValue, 0, 250));
+               $feed_url = $this->dbh->escape_string($attrs->getNamedItem('xmlUrl')->nodeValue);
+               if (!$feed_url) $feed_url = $this->dbh->escape_string($attrs->getNamedItem('xmlURL')->nodeValue);
 
                $site_url = $this->dbh->escape_string(mb_substr($attrs->getNamedItem('htmlUrl')->nodeValue, 0, 250));