Skip to content

Commit

Permalink
Don't use hostname buckets for SSL (fixes #104)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpyo committed Mar 17, 2015
1 parent aea048e commit f363dd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S3.php
Original file line number Diff line number Diff line change
Expand Up @@ -2306,6 +2306,7 @@ private function __responseWriteCallback(&$curl, &$data)
private function __dnsBucketName($bucket)
{
if (strlen($bucket) > 63 || preg_match("/[^a-z0-9\.-]/", $bucket) > 0) return false;
if (S3::$useSSL && strstr($bucket, '.') !== false) return false;
if (strstr($bucket, '-.') !== false) return false;
if (strstr($bucket, '..') !== false) return false;
if (!preg_match("/^[0-9a-z]/", $bucket)) return false;
Expand Down

0 comments on commit f363dd4

Please sign in to comment.