🔧
This commit is contained in:
3
node_modules/axios/lib/helpers/formDataToJSON.js
generated
vendored
3
node_modules/axios/lib/helpers/formDataToJSON.js
generated
vendored
@@ -49,6 +49,9 @@ function arrayToObject(arr) {
|
||||
function formDataToJSON(formData) {
|
||||
function buildPath(path, value, target, index) {
|
||||
let name = path[index++];
|
||||
|
||||
if (name === '__proto__') return true;
|
||||
|
||||
const isNumericKey = Number.isFinite(+name);
|
||||
const isLast = index >= path.length;
|
||||
name = !name && utils.isArray(target) ? target.length : name;
|
||||
|
||||
Reference in New Issue
Block a user