[BUGFIX] Fix T3editor after PSR-7 change
[Packages/TYPO3.CMS.git] / typo3 / sysext / openid / lib / php-openid / php-openid-typo3.patch
1  .../php-openid/Auth/Yadis/ParanoidHTTPFetcher.php  | 27 ++++++++++++++++++++++
2  1 file changed, 27 insertions(+)
3
4 diff --git a/typo3/sysext/openid/lib/php-openid/Auth/Yadis/ParanoidHTTPFetcher.php b/typo3/sysext/openid/lib/php-openid/Auth/Yadis/ParanoidHTTPFetcher.php
5 index 627ea9a..af5043e 100644
6 --- a/typo3/sysext/openid/lib/php-openid/Auth/Yadis/ParanoidHTTPFetcher.php
7 +++ b/typo3/sysext/openid/lib/php-openid/Auth/Yadis/ParanoidHTTPFetcher.php
8 @@ -153,6 +153,20 @@ class Auth_Yadis_ParanoidHTTPFetcher extends Auth_Yadis_HTTPFetcher {
9              if (defined('Auth_OpenID_HTTP_PROXY')) {
10                  curl_setopt($c, CURLOPT_PROXY, Auth_OpenID_HTTP_PROXY);
11              }
12 +
13 +                       // <TYPO3-specific>
14 +                       if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']) {
15 +                               curl_setopt($c, CURLOPT_PROXY, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']);
16 +
17 +                               if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']) {
18 +                                       curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']);
19 +                               }
20 +                               if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']) {
21 +                                       curl_setopt($c, CURLOPT_PROXYUSERPWD, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']);
22 +                               }
23 +                       }
24 +                       // </TYPO3-specific>
25 +
26              curl_exec($c);
27  
28              $code = curl_getinfo($c, CURLINFO_HTTP_CODE);
29 @@ -216,6 +230,19 @@ class Auth_Yadis_ParanoidHTTPFetcher extends Auth_Yadis_HTTPFetcher {
30              curl_setopt($c, CURLOPT_PROXY, Auth_OpenID_HTTP_PROXY);
31          }
32  
33 +               // <TYPO3-specific>
34 +               if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']) {
35 +                       curl_setopt($c, CURLOPT_PROXY, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']);
36 +
37 +                       if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']) {
38 +                               curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']);
39 +                       }
40 +                       if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']) {
41 +                               curl_setopt($c, CURLOPT_PROXYUSERPWD, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']);
42 +                       }
43 +               }
44 +               // </TYPO3-specific>
45 +
46          curl_setopt($c, CURLOPT_POST, true);
47          curl_setopt($c, CURLOPT_POSTFIELDS, $body);
48          curl_setopt($c, CURLOPT_TIMEOUT, $this->timeout);