fix html injection; thanks to ⬡-49016 for its report
This commit is contained in:
parent
3d0725135c
commit
f376d8ec96
2 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ foreach (array_reverse($rows) as $i){
|
||||||
if ($i["isrespondedto"] === "f" && $i["ispublic"] == "t") {
|
if ($i["isrespondedto"] === "f" && $i["ispublic"] == "t") {
|
||||||
echo("<div class=\"question\">");
|
echo("<div class=\"question\">");
|
||||||
if ($i["iscwed"] === "t") {
|
if ($i["iscwed"] === "t") {
|
||||||
echo("<details><summary>cw: " . $i["cw"] . "</summary><span class=\"cwfiller\"></span>");
|
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span>");
|
||||||
}
|
}
|
||||||
echo(htmlspecialchars($i["text"]));
|
echo(htmlspecialchars($i["text"]));
|
||||||
echo("<div class=\"time\">" . $i["time"] . "</div>");
|
echo("<div class=\"time\">" . $i["time"] . "</div>");
|
||||||
|
|
|
@ -36,7 +36,7 @@ foreach (array_reverse($rows) as $i){
|
||||||
if ($i["ispublic"] === "t" && $i["isrespondedto"] === "t") {
|
if ($i["ispublic"] === "t" && $i["isrespondedto"] === "t") {
|
||||||
echo("<div class=\"question\">");
|
echo("<div class=\"question\">");
|
||||||
if ($i["iscwed"] === "t") {
|
if ($i["iscwed"] === "t") {
|
||||||
echo("<details><summary>cw: " . $i["cw"] . "</summary><span class=\"cwfiller\"></span>");
|
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span>");
|
||||||
}
|
}
|
||||||
echo(htmlspecialchars($i["text"]));
|
echo(htmlspecialchars($i["text"]));
|
||||||
echo("<div class=\"time\">" . $i["time"] . "</div>");
|
echo("<div class=\"time\">" . $i["time"] . "</div>");
|
||||||
|
|
Loading…
Add table
Reference in a new issue