* Fix bug#37070.

This commit is contained in:
chaideqing
2023-08-07 02:10:36 +00:00
parent b525d279e1
commit c54090bb69
+1 -1
View File
@@ -208,7 +208,7 @@ function setFileName(fileID)
}
/* For the max version of the file judgment. */
if(isset($this->config->file->libreOfficeTurnon) and $this->config->file->libreOfficeTurnon == 1 and common::hasPriv('file', 'preview'))
if(isset($this->config->file->libreOfficeTurnon) and $this->config->file->libreOfficeTurnon == 1 and !($this->config->file->convertType == 'collabora' and $this->config->requestType == 'GET') and common::hasPriv('file', 'preview'))
{
$officeTypes = 'doc|docx|xls|xlsx|ppt|pptx|pdf';
if(stripos($officeTypes, $file->extension) !== false)