|
|
@@ -22,6 +22,7 @@ use Cake\Filesystem\File;
|
|
|
use Cake\Log\Log;
|
|
|
use Cake\Network\Http\FormData\Part;
|
|
|
use Cake\Utility\Hash;
|
|
|
+use Cake\Utility\Security;
|
|
|
use Cake\Utility\Text;
|
|
|
use Cake\View\ViewVarsTrait;
|
|
|
use Closure;
|
|
|
@@ -1610,7 +1611,7 @@ class Email implements JsonSerializable, Serializable
|
|
|
protected function _createBoundary()
|
|
|
{
|
|
|
if (!empty($this->_attachments) || $this->_emailFormat === 'both') {
|
|
|
- $this->_boundary = md5(uniqid(time()));
|
|
|
+ $this->_boundary = md5(Security::randomBytes(16));
|
|
|
}
|
|
|
}
|
|
|
|