* Finish task#7388.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user