Fixed logic error Amazon_S3StorageBackend

This commit is contained in:
Albert Santoni 2015-03-20 18:03:23 -04:00
parent 8c7ae6c890
commit 7b9efb988f
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class Amazon_S3StorageBackend extends StorageBackend
$slashPos = strpos($prefix, "/");
if (($slashPos === FALSE) || //Slash must exist
($slashPos != 2) || //Slash must be the third character
(strlen($prefix) > $slashPos) || //String must have something after the first slash
(strlen($prefix) <= $slashPos) || //String must have something after the first slash
(substr_count($prefix, "/") != 2)) //String must have two slashes
{
throw new Exception("Invalid file prefix in " . __FUNCTION__);