diff --git a/system/HTTP/Files/UploadedFile.php b/system/HTTP/Files/UploadedFile.php index 4c3092f953b3..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->$this->getExtension(); + return time().'_'.bin2hex(random_bytes(10)).'.'.$this->getExtension(); } //--------------------------------------------------------------------