Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
FIX: S3 driver does not handle minisite path correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 30, 2014
1 parent 14cdc03 commit ebe238b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/src/plugins/access.s3/class.s3AccessDriver.php
Expand Up @@ -64,7 +64,6 @@ public function initRepository()
$this->driverConf = array();
}

$path = $this->repository->getOption("PATH");
$recycle = $this->repository->getOption("RECYCLE_BIN");
ConfService::setConf("PROBE_REAL_SIZE", false);
$wrapperData = $this->detectStreamWrapper(true);
Expand Down
4 changes: 4 additions & 0 deletions core/src/plugins/access.s3/class.s3AccessWrapper.php
Expand Up @@ -49,7 +49,11 @@ protected static function initPath($path, $streamType, $storeOpenContext = false
self::$lastException = $e;
throw $e;
}
$basePath = $repoObject->getOption("PATH");
$baseContainer = $repoObject->getOption("CONTAINER");
if(!empty($basePath)){
$baseContainer.=rtrim($basePath, "/");
}
$p = "s3://".$baseContainer.str_replace("//", "/", $url["path"]);
return $p;
}
Expand Down

0 comments on commit ebe238b

Please sign in to comment.