fix: missing escape on ACP category backgroundImage property

isekai-main
Julian Lam 2 years ago
parent 61d1e9e0d4
commit 67cb70352f

@ -86,7 +86,7 @@ function modifyCategory(category, fields) {
db.parseIntFields(category, intFields, fields);
const escapeFields = ['name', 'color', 'bgColor', 'imageClass', 'class', 'link'];
const escapeFields = ['name', 'color', 'bgColor', 'backgroundImage', 'imageClass', 'class', 'link'];
escapeFields.forEach((field) => {
if (category.hasOwnProperty(field)) {
category[field] = validator.escape(String(category[field] || ''));

Loading…
Cancel
Save