]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix batch subscribe eating CRs (closes #667)
authorAndrew Dolgov <fox@fakecake.org>
Fri, 5 Apr 2013 05:08:28 +0000 (09:08 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Fri, 5 Apr 2013 05:08:28 +0000 (09:08 +0400)
classes/pref/feeds.php

index 7fb64623e57d8e48622932e052a22d192f86afff..68535562f21debf43a88d238e54860a035a13550 100644 (file)
@@ -1800,12 +1800,12 @@ class Pref_Feeds extends Handler_Protected {
 
        function batchAddFeeds() {
                $cat_id = db_escape_string($this->link, $_REQUEST['cat']);
-               $feeds = explode("\n", db_escape_string($this->link, $_REQUEST['feeds']));
+               $feeds = explode("\n", $_REQUEST['feeds']);
                $login = db_escape_string($this->link, $_REQUEST['login']);
                $pass = db_escape_string($this->link, $_REQUEST['pass']);
 
                foreach ($feeds as $feed) {
-                       $feed = trim($feed);
+                       $feed = db_escape_string($this->link, trim($feed));
 
                        if (validate_feed_url($feed)) {