Fixed bug #11932: OpenID login does uses cURL even if was not defined in TYPO3_CONF_VARS
authorOliver Hader <oliver.hader@typo3.org>
Fri, 6 Nov 2009 13:00:47 +0000 (13:00 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 6 Nov 2009 13:00:47 +0000 (13:00 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6358 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/openid/sv1/class.tx_openid_sv1.php

index bbfbaac..612ab46 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,6 +26,7 @@
        * Raised DBAL version from 0.9.23 to 0.9.24
        * Raised saltedpasswords version from 0.9.1 to 0.9.2
        * Fixed bug #12488: Remove redundant code from t3lib_matchCondition in favour of using t3lib_matchCondition_frontend
+       * Fixed bug #11932: OpenID login does uses cURL even if was not defined in TYPO3_CONF_VARS
 
 2009-11-05  Martin Kutschker  <masi@typo3.org>
 
index 53ae2fa..ba8ea9e 100644 (file)
@@ -93,6 +93,19 @@ class tx_openid_sv1 extends t3lib_svbase {
         */
        protected static $openIDLibrariesIncluded = false;
 
+       /**
+        * Contructs the OpenID authentication service.
+        */
+       public function __construct() {
+               // Auth_Yadis_Yadis::getHTTPFetcher() will use a cURL fetcher if the functionality
+               // is available in PHP, however the TYPO3 setting is not considered here:
+               if (!defined('Auth_Yadis_CURL_OVERRIDE')) {
+                       if (!$GLOBALS['TYPO3_CONF_VARS']['SYS']['curlUse']) {
+                               define('Auth_Yadis_CURL_OVERRIDE', true);
+                       }
+               }
+       }
+
        /**
         * Checks if service is available,. In case of this service we check that
         * prerequesties for "PHP OpenID" libraries are fulfilled: