fix batch subscribe eating CRs (closes #667)

This commit is contained in:
Andrew Dolgov 2013-04-05 09:08:28 +04:00
parent bb296998de
commit 2714d5caa3
1 changed files with 2 additions and 2 deletions

View File

@ -1800,12 +1800,12 @@ class Pref_Feeds extends Handler_Protected {
function batchAddFeeds() { function batchAddFeeds() {
$cat_id = db_escape_string($this->link, $_REQUEST['cat']); $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']); $login = db_escape_string($this->link, $_REQUEST['login']);
$pass = db_escape_string($this->link, $_REQUEST['pass']); $pass = db_escape_string($this->link, $_REQUEST['pass']);
foreach ($feeds as $feed) { foreach ($feeds as $feed) {
$feed = trim($feed); $feed = db_escape_string($this->link, trim($feed));
if (validate_feed_url($feed)) { if (validate_feed_url($feed)) {