We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b662a16 commit 3b5c642Copy full SHA for 3b5c642
classes/ApiController.php
@@ -292,7 +292,7 @@ protected function base64ToFile($string)
292
293
$data = base64_decode(explode(',', $string)[1]);
294
295
- $filePath = temp_path(time() . $this->user->id . '.' . $fileExt);
+ $filePath = temp_path(time() . rand() . '.' . $fileExt);
296
297
file_put_contents($filePath, $data);
298
0 commit comments