satanize ampersand
This commit is contained in:
2
index.js
2
index.js
@@ -53,7 +53,7 @@ function verifyToken(token) {
|
|||||||
return split[0];
|
return split[0];
|
||||||
}
|
}
|
||||||
function sanitiseStringHTML(str) {
|
function sanitiseStringHTML(str) {
|
||||||
return str.replaceAll(">", ">").replaceAll("<", "<");
|
return str.replaceAll("&", "&").replaceAll(">", ">").replaceAll("<", "<");
|
||||||
}
|
}
|
||||||
|
|
||||||
app.use(express.urlencoded());
|
app.use(express.urlencoded());
|
||||||
|
|||||||
Reference in New Issue
Block a user