From c52cde5add2927191e40cb1ef52cda0762abca41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C4=81vis=20Mi=C4=8Dulis?= Date: Fri, 12 Aug 2016 23:25:44 +0300 Subject: [PATCH 1/3] UploadedFile typo fix --- system/HTTP/Files/UploadedFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/HTTP/Files/UploadedFile.php b/system/HTTP/Files/UploadedFile.php index 4c3092f953b3..dae0a4fc63f0 100644 --- a/system/HTTP/Files/UploadedFile.php +++ b/system/HTTP/Files/UploadedFile.php @@ -331,7 +331,7 @@ public function getTempName(): string */ public function getRandomName(): string { - return time().'_'.random_bytes(10).'.'.$this->$this->getExtension(); + return time().'_'.random_bytes(10).'.'.$this->getExtension(); } //-------------------------------------------------------------------- From 475268e765baf378eeb00494921d5f3e0b734a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C4=81vis=20Mi=C4=8Dulis?= Date: Fri, 12 Aug 2016 23:43:02 +0300 Subject: [PATCH 2/3] Random file name fix --- system/HTTP/Files/UploadedFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/HTTP/Files/UploadedFile.php b/system/HTTP/Files/UploadedFile.php index dae0a4fc63f0..e7f44f09e9d6 100644 --- a/system/HTTP/Files/UploadedFile.php +++ b/system/HTTP/Files/UploadedFile.php @@ -331,7 +331,7 @@ public function getTempName(): string */ public function getRandomName(): string { - return time().'_'.random_bytes(10).'.'.$this->getExtension(); + return time().'_'.bin2hex(random_bytes(10)).'.'.$this->getExtension(); } //-------------------------------------------------------------------- From c1a8a3cf5becc260fd29e7c9af8842699f088782 Mon Sep 17 00:00:00 2001 From: Lonnie Ezell Date: Sat, 13 Aug 2016 21:04:14 -0500 Subject: [PATCH 3/3] Adding missing element from MockAppConfig so that tests run correctly again. --- tests/_support/Config/MockAppConfig.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/_support/Config/MockAppConfig.php b/tests/_support/Config/MockAppConfig.php index 4280562559e0..f9bf06b3bbe8 100644 --- a/tests/_support/Config/MockAppConfig.php +++ b/tests/_support/Config/MockAppConfig.php @@ -22,4 +22,6 @@ class MockAppConfig public $CSRFExcludeURIs = ['http://example.com']; public $CSPEnabled = false; + + public $defaultLocale = 'en'; }