From: Andrew Dolgov Date: Fri, 5 Apr 2013 05:08:28 +0000 (+0400) Subject: fix batch subscribe eating CRs (closes #667) X-Git-Tag: 1.7.9~64 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2714d5caa3e715b25cd75ec67ebe79973dfda2a2;p=tt-rss.git fix batch subscribe eating CRs (closes #667) --- diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 7fb64623..68535562 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -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)) {