1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 12:35:56 +00:00

prevent frontend updating of feeds on view if open_basedir is set to prevent plugins potentially not working correctly (i.e. if backend system has open_basedir disabled)

This commit is contained in:
Andrew Dolgov
2016-01-23 12:13:03 +03:00
parent 8f2268dd5e
commit 29c92d7b08
2 changed files with 4 additions and 2 deletions

View File

@@ -416,7 +416,9 @@ class API extends Handler {
$feed_id = (int) $this->dbh->escape_string($_REQUEST["feed_id"]);
update_rss_feed($feed_id, true);
if (!ini_get("open_basedir")) {
update_rss_feed($feed_id, true);
}
$this->wrap(self::STATUS_OK, array("status" => "OK"));
}