* Fix bug#46443. Finish task#114582.

This commit is contained in:
xieqiyu
2024-04-02 14:13:09 +08:00
parent 0592702926
commit 07bb538bfa
+1 -1
View File
@@ -1684,7 +1684,7 @@ class testtaskModel extends model
$file = $files[0];
$filePath = $this->file->savePath . $this->file->getSaveName($file['pathname']);
move_uploaded_file($file['tmpname'], $filePath);
$parsedXML = simplexml_load_file($filePath);
$parsedXML = simplexml_load_file($filePath, null, LIBXML_NOERROR);
if($parsedXML === false)
{
dao::$errors['resultFile'][] = $this->lang->testtask->cannotBeParsed;