From 58e80a88c3fd463d502807614e88c1aec62e79dc Mon Sep 17 00:00:00 2001 From: Alex Vanderbist Date: Thu, 2 Feb 2017 14:08:25 +0100 Subject: [PATCH] Dont use periods when generating a random name for the temporary directory --- CHANGELOG.md | 4 ++++ src/TemporaryDirectory.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 613200d..edc096b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `temporary-directory` will be documented in this file +## 1.1.2 - 2017-02-02 + +- do not use periods when generating a name for the temporary directory + ## 1.1.1 - 2017-02-02 - do not use spaces when generating a name for the temporary directory diff --git a/src/TemporaryDirectory.php b/src/TemporaryDirectory.php index 01c6486..23a09c8 100644 --- a/src/TemporaryDirectory.php +++ b/src/TemporaryDirectory.php @@ -29,7 +29,7 @@ public function create() } if (empty($this->name)) { - $this->name = str_replace(' ', '', microtime()); + $this->name = str_replace([' ', '.'], '', microtime()); } if ($this->forceCreate && file_exists($this->getFullPath())) {