mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
"use application/vnd.ms-excel for downloading excel 2003 xml format"
This commit is contained in:
parent
003420713b
commit
fe41f199bc
@ -587,9 +587,16 @@ abstract class bo_merge
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($mimetype == 'application/xml' && strpos($merged,'<?mso-application progid="Word.Document"?>') !== false)
|
||||
if ($mimetype == 'application/xml')
|
||||
{
|
||||
$mimetype = 'application/msword'; // to open it automatically in word or oowriter
|
||||
if (strpos($merged,'<?mso-application progid="Word.Document"?>') !== false)
|
||||
{
|
||||
$mimetype = 'application/msword'; // to open it automatically in word or oowriter
|
||||
}
|
||||
elseif (strpos($merged,'<?mso-application progid="Excel.Sheet"?>') !== false)
|
||||
{
|
||||
$mimetype = 'application/vnd.ms-excel'; // to open it automatically in excel or oocalc
|
||||
}
|
||||
}
|
||||
ExecMethod2('phpgwapi.browser.content_header',basename($document),$mimetype);
|
||||
echo $merged;
|
||||
|
Loading…
Reference in New Issue
Block a user