mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +09:00
Fix erroneous delete of local variable
The delete operator only works on object properties, and causes the code coverage to fail for the file in question if used on a local variable.
This commit is contained in:
1 parent
07cff0ab9a
commit
2acf57d23d
1 file changed
+1
-1
@@ -187,7 +187,7 @@ async function uploadExport(req, res, next) {
|
|||||||
}
|
}
|
||||||
data = Buffer.concat(data);
|
data = Buffer.concat(data);
|
||||||
let zip = await JSZip.loadAsync(data);
|
let zip = await JSZip.loadAsync(data);
|
||||||
delete data;
|
data = null;
|
||||||
|
|
||||||
// This is hardcoded to prevent path expansion attacks
|
// This is hardcoded to prevent path expansion attacks
|
||||||
let exportFiles = [
|
let exportFiles = [
|
||||||
|
|||||||
Reference in new issue
Block a user