mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 12:05:18 +02:00
fix(http): escape req.query.to in replaceTemplates
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user