Преглед изворни кода

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 година
родитељ
комит
0d195c2772
1 измењених фајлова са 3 додато и 0 уклоњено
  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)
     public function __construct($oauthOptions, $uri = null, $config = null)
     {
     {
+        if (!isset($config['rfc3986_strict'])) {
+            $config['rfc3986_strict'] = true;
+        }
         parent::__construct($uri, $config);
         parent::__construct($uri, $config);
         $this->_config = new Zend_Oauth_Config;
         $this->_config = new Zend_Oauth_Config;
         if ($oauthOptions !== null) {
         if ($oauthOptions !== null) {