From d000117e4b227ba9078f63601128ca44fe73631b Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 11 Aug 2017 10:45:06 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#338 where WireTempDir had incorrect order of arguments to explode function --- wire/core/WireTempDir.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/WireTempDir.php b/wire/core/WireTempDir.php index 8030b3ad..f29f0e41 100644 --- a/wire/core/WireTempDir.php +++ b/wire/core/WireTempDir.php @@ -89,7 +89,7 @@ class WireTempDir extends Wire { $this->wire($pass); $len = mt_rand(10, 30); $name = microtime() . '.' . $pass->randomBase64String($len, true); - $a = explode($name, '.'); + $a = explode('.', $name); shuffle($a); $name = $prefix . implode('O', $a); $this->createdName = $name;