Archived
1
0

fix(http): escape req.query.to in replaceTemplates

This commit is contained in:
Joe Previte
2021-06-30 10:39:48 -07:00
parent 2ba03c3424
commit c0e123a801
3 changed files with 10 additions and 7 deletions

View File

@ -112,7 +112,7 @@ router.post("/", async (req, res) => {
throw new Error("Incorrect password")
} catch (error) {
const htmlToRender = await getRoot(req, error)
res.send(htmlToRender)
const renderedHtml = await getRoot(req, error)
res.send(renderedHtml)
}
})