* Finish task#7388.

This commit is contained in:
leiyong
2020-07-12 23:31:06 -07:00
parent a4b52c7e87
commit 9bc64773db
+1 -2
View File
@@ -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;