mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-03 07:28:57 +02:00
Suggest correct filename on download
This commit is contained in:
committed by
Molkobain
parent
868c157ae4
commit
4f72336301
@@ -143,6 +143,7 @@ if (file_exists($sDotExecutable))
|
||||
else
|
||||
{
|
||||
header('Content-type: image/svg+xml');
|
||||
header('Content-Disposition: inline; filename="'.$sClass.'.svg"');
|
||||
readfile($sImageFilePath);
|
||||
}
|
||||
@unlink($sDotFilePath);
|
||||
@@ -150,6 +151,7 @@ if (file_exists($sDotExecutable))
|
||||
else
|
||||
{
|
||||
header('Content-type: image/png');
|
||||
header('Content-Disposition: inline; filename="'.$sClass.'.png"');
|
||||
readfile($sImageFilePath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user