"downloading word2003 mergeprint files (application/xml) as application/msword, to open it automatically in word or oowriter"

This commit is contained in:
Ralf Becker 2009-11-03 11:55:12 +00:00
parent 1052fffbba
commit 86d9470719

View File

@ -582,6 +582,10 @@ abstract class bo_merge
}
else
{
if ($mimetype == 'application/xml' && strpos($merged,'<?mso-application progid="Word.Document"?>') !== false)
{
$mimetype = 'application/msword'; // to open it automatically in word or oowriter
}
ExecMethod2('phpgwapi.browser.content_header',basename($document),$mimetype);
echo $merged;
}