浏览代码

MMICore : Fix ODT/PDF document display

Mathieu Moulin 2 年之前
父节点
当前提交
62aef36d2e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      htdocs/document.php

+ 3 - 0
htdocs/document.php

@@ -263,6 +263,9 @@ if (preg_match('/\.\./', $fullpath_original_file) || preg_match('/[<>|]/', $full
 
 clearstatcache();
 
+// MMI Fix ODT to PDF
+$fullpath_original_file = preg_replace('/(\.odt)$/i', '.pdf', $fullpath_original_file);
+
 $filename = basename($fullpath_original_file);
 $filename = preg_replace('/\.noexe$/i', '', $filename);