From c54090bb691df2fa909df8eaadae3a978ad51ebb Mon Sep 17 00:00:00 2001 From: chaideqing Date: Mon, 7 Aug 2023 02:10:31 +0000 Subject: [PATCH] * Fix bug#37070. --- module/file/view/viewfiles.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/file/view/viewfiles.html.php b/module/file/view/viewfiles.html.php index 81850f3884..ba83810308 100644 --- a/module/file/view/viewfiles.html.php +++ b/module/file/view/viewfiles.html.php @@ -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)