Change linefeed property to LF
[Packages/TYPO3.CMS.git] / typo3 / sysext / openid / lib / php-openid / php-openid-typo3.patch
1 diff -b -r -u Auth/Yadis/ParanoidHTTPFetcher.php Auth/Yadis/ParanoidHTTPFetcher.php
2 --- Auth/Yadis/ParanoidHTTPFetcher.php  2008-09-09 21:12:13.000000000 +0200
3 +++ Auth/Yadis/ParanoidHTTPFetcher.php  2008-09-24 22:24:11.000000000 +0200
4 @@ -130,6 +130,19 @@
5              curl_setopt($c, CURLOPT_RANGE, 
6                          "0-".(1024 * Auth_OpenID_FETCHER_MAX_RESPONSE_KB));
7  
8 +                       // <TYPO3-specific>
9 +                       if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']) {
10 +                               curl_setopt($c, CURLOPT_PROXY, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']);
11 +
12 +                               if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']) {
13 +                                       curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']);
14 +                               }
15 +                               if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']) {
16 +                                       curl_setopt($c, CURLOPT_PROXYUSERPWD, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']);
17 +                               }
18 +                       }
19 +                       // </TYPO3-specific>
20 +
21              curl_exec($c);
22  
23              $code = curl_getinfo($c, CURLINFO_HTTP_CODE);
24 @@ -194,6 +207,19 @@
25          curl_setopt($c, CURLOPT_WRITEFUNCTION,
26                      array(&$this, "_writeData"));
27  
28 +               // <TYPO3-specific>
29 +               if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']) {
30 +                       curl_setopt($c, CURLOPT_PROXY, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']);
31 +
32 +                       if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']) {
33 +                               curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']);
34 +                       }
35 +                       if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']) {
36 +                               curl_setopt($c, CURLOPT_PROXYUSERPWD, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']);
37 +                       }
38 +               }
39 +               // </TYPO3-specific>
40 +
41          curl_exec($c);
42  
43          $code = curl_getinfo($c, CURLINFO_HTTP_CODE);