harden struct
This commit is contained in:
@@ -370,10 +370,10 @@ class DocumentController extends AbstractController
|
||||
return $this->redirectToRoute('admin_dashboard');
|
||||
}
|
||||
|
||||
@unlink($params->get('mto.vector.data.ndjson.path'));
|
||||
@unlink($params->get('mto.vector.data.vector_index.path'));
|
||||
@unlink($params->get('mto.vector.data.vector_index_meta_json.path'));
|
||||
exec('rm -rf ' . $params->get('mto.vector.data.upload.path'));
|
||||
@unlink($params->get('mto.knowledge.ndjson'));
|
||||
@unlink($params->get('mto.knowledge.vector_index'));
|
||||
@unlink($params->get('mto.knowledge.vector_index_meta'));
|
||||
exec('rm -rf ' . $params->get('mto.knowledge.upload'));
|
||||
|
||||
$sql = '
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
Reference in New Issue
Block a user