Skip to content

Commit a938ec8

Browse files
committed
Use endpoint for getAuthenticatedURL
1 parent f5a5417 commit a938ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ public static function getAuthenticatedURL($bucket, $uri, $lifetime, $hostBucket
11171117
$uri = str_replace(array('%2F', '%2B'), array('/', '+'), rawurlencode($uri));
11181118
return sprintf(($https ? 'https' : 'http').'://%s/%s?AWSAccessKeyId=%s&Expires=%u&Signature=%s',
11191119
// $hostBucket ? $bucket : $bucket.'.s3.amazonaws.com', $uri, self::$__accessKey, $expires,
1120-
$hostBucket ? $bucket : 's3.amazonaws.com/'.$bucket, $uri, self::$__accessKey, $expires,
1120+
$hostBucket ? $bucket : self::$endpoint.'/'.$bucket, $uri, self::$__accessKey, $expires,
11211121
urlencode(self::__getHash("GET\n\n\n{$expires}\n/{$bucket}/{$uri}")));
11221122
}
11231123

0 commit comments

Comments
 (0)