Skip to content

Commit 3b5c642

Browse files
committed
Fix base64 parsing
1 parent b662a16 commit 3b5c642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/ApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ protected function base64ToFile($string)
292292

293293
$data = base64_decode(explode(',', $string)[1]);
294294

295-
$filePath = temp_path(time() . $this->user->id . '.' . $fileExt);
295+
$filePath = temp_path(time() . rand() . '.' . $fileExt);
296296

297297
file_put_contents($filePath, $data);
298298

0 commit comments

Comments
 (0)