Explorar o código

Updating OAuth HTTP Client to utilise a new RFC 3986 strict option being added to Zend_Http_Client - fixes a problem where RFC 3986 is not being strictly applied.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23072 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic %!s(int64=15) %!d(string=hai) anos
pai
achega
0d195c2772
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      library/Zend/Oauth/Client.php

+ 3 - 0
library/Zend/Oauth/Client.php

@@ -76,6 +76,9 @@ class Zend_Oauth_Client extends Zend_Http_Client
      */
     public function __construct($oauthOptions, $uri = null, $config = null)
     {
+        if (!isset($config['rfc3986_strict'])) {
+            $config['rfc3986_strict'] = true;
+        }
         parent::__construct($uri, $config);
         $this->_config = new Zend_Oauth_Config;
         if ($oauthOptions !== null) {