Explorar el Código

ZF-10122, ZF-10218, ZF-10219: fixed the problem with ?key URL

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24051 44c647ce-9c0f-0410-b52a-842ac1e357ba
ezimuel hace 14 años
padre
commit
5ffd2ea0da
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      library/Zend/Service/Amazon/S3.php

+ 7 - 1
library/Zend/Service/Amazon/S3.php

@@ -599,7 +599,13 @@ class Zend_Service_Amazon_S3 extends Zend_Service_Amazon_Abstract
             $endpoint->setHost($parts[0].'.'.$endpoint->getHost());
         }
         if (!empty($parts[1])) {
-            $endpoint->setPath('/'.$parts[1]);
+            //$endpoint->setPath('/'.$parts[1]);
+
+            // ZF-10218, ZF-10219, ZF-10122
+            $pathparts = explode('?',$parts[1]);
+            $endpath = $pathparts[0];
+            $endpoint->setPath('/'.$endpath);
+            
         }
         else {
             $endpoint->setPath('/');