Sfoglia il codice sorgente

Fixes ZFINC-132 - Yahoo usage of oob as OAuth callback url

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24363 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic 14 anni fa
parent
commit
9fd8368675
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      library/Zend/Oauth/Config.php

+ 1 - 1
library/Zend/Oauth/Config.php

@@ -390,7 +390,7 @@ class Zend_Oauth_Config implements Zend_Oauth_Config_ConfigInterface
      */
      */
     public function setCallbackUrl($url)
     public function setCallbackUrl($url)
     {
     {
-        if (!Zend_Uri::check($url)) {
+        if (!Zend_Uri::check($url) && $url !== 'oob') {
             require_once 'Zend/Oauth/Exception.php';
             require_once 'Zend/Oauth/Exception.php';
             throw new Zend_Oauth_Exception(
             throw new Zend_Oauth_Exception(
                 '\'' . $url . '\' is not a valid URI'
                 '\'' . $url . '\' is not a valid URI'