Index: core/units/helpers/curl_helper.php =================================================================== --- core/units/helpers/curl_helper.php (revision 12813) +++ core/units/helpers/curl_helper.php (working copy) @@ -119,6 +119,11 @@ function prepareOptions() { + if ($this->followLocation && ((defined('SAFE_MODE') && SAFE_MODE) || ini_get('open_basedir'))) { + // this won't work with such restrictions, so turn it off + $this->followLocation = false; + } + $default_options = Array ( // customizable options CURLOPT_FOLLOWLOCATION => $this->followLocation ? 1 : 0, Index: in-news/units/articles/articles_event_handler.php =================================================================== --- in-news/units/articles/articles_event_handler.php (revision 12813) +++ in-news/units/articles/articles_event_handler.php (working copy) @@ -173,7 +173,7 @@ /* @var $curl_helper kCurlHelper */ $curl_helper->followLocation = true; - $curl_helper->setOptions( Array (CURLOPT_USERAGENT => 'Wget/1.10.2') ); // otherwise FeedBurner will return HTML + $curl_helper->setOptions( Array (CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows; U; Windows NT 5.2; ru; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)') ); // otherwise FeedBurner will return HTML $xml_data = $curl_helper->Send($event->getEventParam('source_url'));