We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe3a80 commit 57d9fa8Copy full SHA for 57d9fa8
S3.php
@@ -2217,7 +2217,7 @@ private function __responseWriteCallback(&$curl, &$data)
2217
*/
2218
private function __dnsBucketName($bucket)
2219
{
2220
- if (strlen($bucket) > 63 || !preg_match("/[^a-z0-9\.-]/", $bucket)) return false;
+ if (strlen($bucket) > 63 || preg_match("/[^a-z0-9\.-]/", $bucket) > 0) return false;
2221
if (strstr($bucket, '-.') !== false) return false;
2222
if (strstr($bucket, '..') !== false) return false;
2223
if (!preg_match("/^[0-9a-z]/", $bucket)) return false;
0 commit comments