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 e8bcc5c commit 2effff2Copy full SHA for 2effff2
src/File/FileInjector.php
@@ -10,7 +10,7 @@ public static function getFile(string $file, string $data, string $ext, string $
10
{
11
$name = 'file_'.$file.'.'.$ext;
12
$path = \tempnam(\sys_get_temp_dir(), 'sf_test_').$name;
13
- \file_put_contents($path, \str_starts_with($mime, 'text') ? $data : \base64_decode($data));
+ \file_put_contents($path, \str_starts_with($mime, 'text') ? $data : \base64_decode($data, true));
14
15
return new UploadedFile($path, $name, $mime, null, $fixture);
16
}
0 commit comments