Parcourir la source

[ZF-8244] add PHP_URL_HOST to parse_url() in dir_opendir() of Zend_Service_Amazon_S3_Stream

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18889 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp il y a 16 ans
Parent
commit
26794449b7
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      library/Zend/Service/Amazon/S3/Stream.php

+ 2 - 2
library/Zend/Service/Amazon/S3/Stream.php

@@ -410,8 +410,8 @@ class Zend_Service_Amazon_S3_Stream
             $this->_bucketList = $this->_getS3Client($path)->getBuckets();
         }
         else {
-            $url = parse_url($path);
-            $this->_bucketList = $this->_getS3Client($path)->getObjectsByBucket($url["host"]);
+            $host = parse_url($path, PHP_URL_HOST);
+            $this->_bucketList = $this->_getS3Client($path)->getObjectsByBucket($host);
         }
 
         return ($this->_bucketList !== false);