From ac01568036c0b4fe40206b3fd0d1b37a99f9e12c Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Wed, 12 Dec 2018 00:35:35 +1100 Subject: [PATCH] Missing title --- routes/product.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/product.js b/routes/product.js index bee6c07..d2fac28 100644 --- a/routes/product.js +++ b/routes/product.js @@ -79,7 +79,7 @@ router.post('/admin/product/insert', common.restrict, common.checkAccess, (req, let doc = { productPermalink: req.body.frmProductPermalink, - productTitle: req.body.frmProductTitle, + productTitle: common.cleanHtml(req.body.frmProductTitle), productPrice: req.body.frmProductPrice, productDescription: common.cleanHtml(req.body.frmProductDescription), productPublished: req.body.frmProductPublished, @@ -218,7 +218,7 @@ router.post('/admin/product/update', common.restrict, common.checkAccess, (req, }else{ common.getImages(req.body.frmProductId, req, res, (images) => { let productDoc = { - productTitle: req.body.frmProductTitle, + productTitle: common.cleanHtml(req.body.frmProductTitle), productDescription: common.cleanHtml(req.body.frmProductDescription), productPublished: req.body.frmProductPublished, productPrice: req.body.frmProductPrice,