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);