Browse Source

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 15 năm trước cách đây
mục cha
commit
0d195c2772
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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) {