From b3f937914800caf20aff3ac584e1200afe4dcafc Mon Sep 17 00:00:00 2001 From: z Date: Tue, 25 Aug 2020 15:59:42 +0800 Subject: [PATCH] * adjust for check parse file. --- module/file/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/file/model.php b/module/file/model.php index 650f0cbfaa..8eda74de28 100644 --- a/module/file/model.php +++ b/module/file/model.php @@ -536,7 +536,7 @@ class fileModel extends model public function parseCSV($fileName) { /* Parse file only in zentao. */ - if(strpos(realpath($fileName), $this->app->getBasePath()) !== 0) return array(); + if(strpos($fileName, $this->app->getBasePath()) !== 0) return array(); $content = file_get_contents($fileName); /* Fix bug #890. */ $content = str_replace(array("\r\n","\r"), "\n", $content);