mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 21:51:29 +00:00
only use geturl() if in safe mode
This commit is contained in:
@@ -286,8 +286,12 @@
|
|||||||
global $fetch_last_error;
|
global $fetch_last_error;
|
||||||
|
|
||||||
if (function_exists('curl_init') && !ini_get("open_basedir")) {
|
if (function_exists('curl_init') && !ini_get("open_basedir")) {
|
||||||
//$ch = curl_init($url);
|
|
||||||
|
if (ini_get("safe_mode")) {
|
||||||
$ch = curl_init(geturl($url));
|
$ch = curl_init(geturl($url));
|
||||||
|
} else {
|
||||||
|
$ch = curl_init($url);
|
||||||
|
}
|
||||||
|
|
||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout ? $timeout : 15);
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout ? $timeout : 15);
|
||||||
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout ? $timeout : 45);
|
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout ? $timeout : 45);
|
||||||
|
|||||||
Reference in New Issue
Block a user