From: root Date: Fri, 14 Dec 2012 23:09:39 +0000 (+0100) Subject: call it "proxy" instead of "curlproxy" X-Git-Tag: v5.0.0alpha1~299^2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f381d2e9ed4606f44641b24250379ab4c5000b6e;p=nextcloud-server.git call it "proxy" instead of "curlproxy" Thanks Bart for the hint. This also switches "==" to "<>" and not the code actually works ;-) --- diff --git a/config/config.sample.php b/config/config.sample.php index c915a877291..78dfe17ea79 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -43,10 +43,10 @@ $CONFIG = array( "enhancedauthtime" => 15 * 60, /* A proxy to use to connect to the internet. For example "myproxy.org:88" */ -"curlproxy" => "", +"proxy" => "", /* The optional authentication for the proxy to use to connect to the internet. The format is: [username]:[password] */ -"curlproxyuserpwd" => "", +"proxyuserpwd" => "", /* Theme to use for ownCloud */ "theme" => "", diff --git a/lib/util.php b/lib/util.php index 61b327d0b8c..f2044625b41 100755 --- a/lib/util.php +++ b/lib/util.php @@ -696,11 +696,11 @@ class OC_Util { curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_USERAGENT, "ownCloud Server Crawler"); - if(OC_Config::getValue('curlproxy','')=='') { - curl_setopt($curl, CURLOPT_PROXY, OC_Config::getValue('curlproxy')); + if(OC_Config::getValue('proxy','')<>'') { + curl_setopt($curl, CURLOPT_PROXY, OC_Config::getValue('proxy')); } - if(OC_Config::getValue('curlproxyuserpwd','')=='') { - curl_setopt($curl, CURLOPT_PROXYUSERPWD, OC_Config::getValue('curlproxyuserpwd')); + if(OC_Config::getValue('proxyuserpwd','')<>'') { + curl_setopt($curl, CURLOPT_PROXYUSERPWD, OC_Config::getValue('proxyuserpwd')); } $data = curl_exec($curl); curl_close($curl);