Unneeded workaround removed

2022.09-rc
Michael 2021-07-05 05:11:35 +00:00
rodzic a06d699480
commit fccb725651
1 zmienionych plików z 1 dodań i 12 usunięć

Wyświetl plik

@ -193,18 +193,7 @@ class Images
$filesize = strlen($img_str);
try {
if (function_exists("getimagesizefromstring")) {
$data = @getimagesizefromstring($img_str);
} else {
$tempfile = tempnam(get_temppath(), "cache");
$stamp1 = microtime(true);
file_put_contents($tempfile, $img_str);
DI::profiler()->saveTimestamp($stamp1, "file");
$data = getimagesize($tempfile);
unlink($tempfile);
}
$data = @getimagesizefromstring($img_str);
} catch (\Exception $e) {
return [];
}