* adjust for check parse file.

This commit is contained in:
z
2020-08-25 15:59:42 +08:00
parent 586f34b10f
commit b3f9379148
+1 -1
View File
@@ -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);