Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 3847f38

Browse files
liaynmarcoceppi
authored andcommitted
#137: Remove TYPO3 specific code
1 parent 263a6c7 commit 3847f38

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Auth/Yadis/ParanoidHTTPFetcher.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,6 @@ function get($url, $extra_headers = null)
169169
curl_setopt($c, CURLOPT_PROXY, Auth_OpenID_HTTP_PROXY);
170170
}
171171

172-
// <TYPO3-specific>
173-
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']) {
174-
curl_setopt($c, CURLOPT_PROXY, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']);
175-
176-
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']) {
177-
curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']);
178-
}
179-
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']) {
180-
curl_setopt($c, CURLOPT_PROXYUSERPWD, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']);
181-
}
182-
}
183-
// </TYPO3-specific>
184-
185172
curl_exec($c);
186173

187174
$code = curl_getinfo($c, CURLINFO_HTTP_CODE);
@@ -245,19 +232,6 @@ function post($url, $body, $extra_headers = null)
245232
curl_setopt($c, CURLOPT_PROXY, Auth_OpenID_HTTP_PROXY);
246233
}
247234

248-
// <TYPO3-specific>
249-
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']) {
250-
curl_setopt($c, CURLOPT_PROXY, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']);
251-
252-
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']) {
253-
curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']);
254-
}
255-
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']) {
256-
curl_setopt($c, CURLOPT_PROXYUSERPWD, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']);
257-
}
258-
}
259-
// </TYPO3-specific>
260-
261235
curl_setopt($c, CURLOPT_POST, true);
262236
curl_setopt($c, CURLOPT_POSTFIELDS, $body);
263237
curl_setopt($c, CURLOPT_TIMEOUT, $this->timeout);

0 commit comments

Comments
 (0)