Skip to content
Snippets Groups Projects
Verified Commit 7dd7ffb0 authored by Damien's avatar Damien
Browse files

FEAT #13671 TIME 1:15 Installer images fixes

parent 970be979
No related branches found
No related tags found
No related merge requests found
......@@ -457,6 +457,7 @@ class InstallerController
} else {
$tmpPath = CoreConfigModel::getTmpPath();
$tmpFileName = $tmpPath . 'installer_body_' . rand() . '_file.jpg';
$body['bodyLoginBackground'] = str_replace('data:image/jpeg;base64,', '', $body['bodyLoginBackground']);
$file = base64_decode($body['bodyLoginBackground']);
file_put_contents($tmpFileName, $file);
......@@ -473,6 +474,7 @@ class InstallerController
if (strpos($body['logo'], 'data:image/svg+xml;base64,') !== false) {
$tmpPath = CoreConfigModel::getTmpPath();
$tmpFileName = $tmpPath . 'installer_logo_' . rand() . '_file.svg';
$body['logo'] = str_replace('data:image/svg+xml;base64,', '', $body['logo']);
$file = base64_decode($body['logo']);
file_put_contents($tmpFileName, $file);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment