]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Bump to Auth_OpenID 2.1.3
authorCraig Andrews <candrews@integralblue.com>
Fri, 30 Oct 2009 05:30:42 +0000 (01:30 -0400)
committerCraig Andrews <candrews@integralblue.com>
Fri, 30 Oct 2009 05:30:42 +0000 (01:30 -0400)
extlib/Auth/OpenID.php
extlib/Auth/OpenID/BigMath.php
extlib/Auth/OpenID/Consumer.php
extlib/Auth/OpenID/Message.php
extlib/Auth/Yadis/HTTPFetcher.php
extlib/Auth/Yadis/ParanoidHTTPFetcher.php
extlib/Auth/Yadis/PlainHTTPFetcher.php
extlib/Auth/Yadis/XML.php

index 6556b5b01e8bb43ef315991932b370ce30535bdf..db6164256f801412c6b2c23faebcec9673d39cef 100644 (file)
@@ -20,7 +20,7 @@
 /**
  * The library version string
  */
-define('Auth_OpenID_VERSION', '2.1.2');
+define('Auth_OpenID_VERSION', '2.1.3');
 
 /**
  * Require the fetcher code.
index b5fc627a096cee6247daaf495b2d9b1e29d86e61..45104947d6da44412671f6e319f0dcf817131893 100644 (file)
@@ -376,7 +376,7 @@ function Auth_OpenID_detectMathLibrary($exts)
         // Try to load dynamic modules.
         if (!$loaded) {
             foreach ($extension['modules'] as $module) {
-                if (function_exists('dl') && ini_get('enable_dl') && !ini_get('safe_mode') && @dl($module . "." . PHP_SHLIB_SUFFIX)) {
+                if (@dl($module . "." . PHP_SHLIB_SUFFIX)) {
                     $loaded = true;
                     break;
                 }
index a72684c6b8b76fc19d779068f224a4d55f15b17b..500890b6568def082e94b3afdc28ac893cd3592c 100644 (file)
@@ -1295,7 +1295,8 @@ class Auth_OpenID_GenericConsumer {
             Auth_OpenID_OPENID2_NS => array_merge($basic_sig_fields,
                                                   array('response_nonce',
                                                         'claimed_id',
-                                                        'assoc_handle')),
+                                                        'assoc_handle',
+                                                        'op_endpoint')),
             Auth_OpenID_OPENID1_NS => array_merge($basic_sig_fields,
                                                   array('nonce'))
             );
index fd23e67a3c2c7c7939540a9eb94e427c651f8d79..5ab115a86e0670d15dd32a9c75be6ef907309565 100644 (file)
@@ -887,6 +887,11 @@ class Auth_OpenID_Message {
 
     function getAliasedArg($aliased_key, $default = null)
     {
+        if ($aliased_key == 'ns') {
+            // Return the namespace URI for the OpenID namespace
+            return $this->getOpenIDNamespace();
+        }
+
         $parts = explode('.', $aliased_key, 2);
 
         if (count($parts) != 2) {
index a1825403d67b9684b577035dd29f5e960df63a06..963b9a49a48f50495e561be4863957b61aa377a3 100644 (file)
@@ -138,7 +138,7 @@ class Auth_Yadis_HTTPFetcher {
      * pass the URLHasAllowedScheme check or if the server's response
      * is malformed.
      */
-    function get($url, $headers)
+    function get($url, $headers = null)
     {
         trigger_error("not implemented", E_USER_ERROR);
     }
index 8975d7f89ed6e5b035fb2e1db0eaa977dd68bfe0..6a418260eefebfa409768d5d750e1026457ff4dd 100644 (file)
@@ -127,8 +127,6 @@ class Auth_Yadis_ParanoidHTTPFetcher extends Auth_Yadis_HTTPFetcher {
                         Auth_OpenID_USER_AGENT.' '.$curl_user_agent);
             curl_setopt($c, CURLOPT_TIMEOUT, $off);
             curl_setopt($c, CURLOPT_URL, $url);
-            curl_setopt($c, CURLOPT_RANGE, 
-                        "0-".(1024 * Auth_OpenID_FETCHER_MAX_RESPONSE_KB));
 
             curl_exec($c);
 
index 8882e3cef7e7c3992d72d92d7e6104ad96affe2e..3e0ca2bb0c7302f5496244f4d9b36bd3fc1ce56a 100644 (file)
@@ -83,8 +83,6 @@ class Auth_Yadis_PlainHTTPFetcher extends Auth_Yadis_HTTPFetcher {
                              "User-Agent: $user_agent",
                              "Host: ".$parts['host'].
                                 ($specify_port ? ":".$parts['port'] : ""),
-                             "Range: 0-".
-                                (1024*Auth_OpenID_FETCHER_MAX_RESPONSE_KB),
                              "Port: ".$parts['port']);
 
             $errno = 0;
index 7232d6cbdd85dbcfe140b0d70818aecf9645cdd2..81b2ce2210a2332a7a82b202b7e3c244542ab3f9 100644 (file)
@@ -91,7 +91,7 @@ class Auth_Yadis_XMLParser {
      * @return array $node_list An array of matching opaque node
      * objects to be used with other methods of this parser class.
      */
-    function evalXPath($xpath, $node = null)
+    function &evalXPath($xpath, $node = null)
     {
         // Not implemented.
     }
@@ -349,7 +349,7 @@ function &Auth_Yadis_getXMLParser()
     foreach ($extensions as $name => $params) {
         if (!extension_loaded($name)) {
             foreach ($params['libname'] as $libname) {
-                if (function_exists('dl') && ini_get('enable_dl') && !ini_get('safe_mode') && @dl($libname)) {
+                if (@dl($libname)) {
                     $classname = $params['classname'];
                 }
             }