commit
9dc5ea172e
19
lib/util.php
19
lib/util.php
|
@ -688,13 +688,26 @@ class OC_Util {
|
|||
curl_close($curl);
|
||||
|
||||
} else {
|
||||
$contextArray = null;
|
||||
|
||||
$ctx = stream_context_create(
|
||||
array(
|
||||
if(OC_Config::getValue('proxy','')<>'') {
|
||||
$contextArray = array(
|
||||
'http' => array(
|
||||
'timeout' => 10,
|
||||
'proxy' => OC_Config::getValue('proxy')
|
||||
)
|
||||
);
|
||||
} else {
|
||||
$contextArray = array(
|
||||
'http' => array(
|
||||
'timeout' => 10
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
$ctx = stream_context_create(
|
||||
$contextArray
|
||||
);
|
||||
$data=@file_get_contents($url, 0, $ctx);
|
||||
|
||||
|
|
Loading…
Reference in New Issue