Skip to content
Snippets Groups Projects
Commit bb70a51a authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #14455 TIME 0:10 fix update custom logo

parent d7df7a25
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ class ParameterController
return $response->withStatus(400)->withJson(['errors' => 'Body image is not a base64 image']);
}
$tmpFileName = $tmpPath . 'parameter_logo_' . rand() . '_file.svg';
$body['logo'] = str_replace('data:image/svg+xml;base64,', '', $body['logo']);
$body['logo'] = str_replace('data:image/svg+xml;base64,', '', $body['image']);
$file = base64_decode($body['logo']);
file_put_contents($tmpFileName, $file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment