Skip to content
Permalink
Browse files

fixed assuming microtime() returns something numeric

which isn't true (it returns a string) and fails in PHP7 which is a lot
more strict towards conversions.
  • Loading branch information...
WanWizard committed Jan 12, 2018
1 parent 8a44a11 commit 33e3f05725b01b666ecf9bafb37216396484b01a
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/image/imagemagick.php
@@ -28,7 +28,7 @@ public function load($filename, $return_data = false, $force_extension = false)
{
do
{
$this->image_temp = $this->config['temp_dir'].substr($this->config['temp_append'].md5(time() * microtime()), 0, 32).'.png';
$this->image_temp = $this->config['temp_dir'].substr($this->config['temp_append'].\Str::random('unique'), 0, 32).'.png';
}
while (is_file($this->image_temp));
}

0 comments on commit 33e3f05

Please sign in to comment.
You can’t perform that action at this time.