mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
More memory efficient image pass through
This commit is contained in:
committed by
Molkobain
parent
e4ab543aff
commit
c2b72c7688
@@ -143,14 +143,14 @@ if (file_exists($sDotExecutable))
|
||||
else
|
||||
{
|
||||
header('Content-type: image/png');
|
||||
echo file_get_contents($sImageFilePath);
|
||||
readfile($sImageFilePath);
|
||||
}
|
||||
@unlink($sDotFilePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
header('Content-type: image/png');
|
||||
echo file_get_contents($sImageFilePath);
|
||||
readfile($sImageFilePath);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user