From 9bc64773db7935fb7b22338ad2192f9f25b28970 Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Sun, 12 Jul 2020 23:31:06 -0700 Subject: [PATCH] * Finish task#7388. --- module/file/model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/file/model.php b/module/file/model.php index 85dce0a284..650f0cbfaa 100644 --- a/module/file/model.php +++ b/module/file/model.php @@ -537,10 +537,9 @@ class fileModel extends model { /* Parse file only in zentao. */ if(strpos(realpath($fileName), $this->app->getBasePath()) !== 0) return array(); - $content = file_get_contents($fileName); /* Fix bug #890. */ - $content = str_replace("\x82\x32", "\x10", $content); + $content = str_replace(array("\r\n","\r"), "\n", $content); $lines = explode("\n", $content); $col = -1;