feat(dashboard): trim all user-submitted strings

This commit is contained in:
Jake Fulmine 2022-08-22 10:01:07 +02:00
parent adaddb579e
commit 267e85b891
5 changed files with 15 additions and 0 deletions

View file

@ -45,6 +45,9 @@
}
}
// trim all string fields
Object.keys(data).forEach(k => data[k] = typeof data[k] == "string" ? data[k].trim() : data[k]);
err = err;
if (err.length > 0) return;