diff --git a/admin/all.php b/admin/all.php
index 5b74cbb..3d0f591 100644
--- a/admin/all.php
+++ b/admin/all.php
@@ -38,7 +38,7 @@ foreach (array_reverse($rows) as $i){
if ($i["isrespondedto"] === "f" && $i["ispublic"] == "t") {
echo("
");
if ($i["iscwed"] === "t") {
- echo("
cw: " . $i["cw"] . "
");
+ echo("cw: " . htmlspecialchars($i["cw"]) . "
");
}
echo(htmlspecialchars($i["text"]));
echo("" . $i["time"] . "
");
@@ -74,4 +74,4 @@ foreach (array_reverse($rows) as $i){
}
}
-?>
\ No newline at end of file
+?>
diff --git a/index.php b/index.php
index 6146864..999474d 100644
--- a/index.php
+++ b/index.php
@@ -36,7 +36,7 @@ foreach (array_reverse($rows) as $i){
if ($i["ispublic"] === "t" && $i["isrespondedto"] === "t") {
echo("");
if ($i["iscwed"] === "t") {
- echo("
cw: " . $i["cw"] . "
");
+ echo("cw: " . htmlspecialchars($i["cw"]) . "
");
}
echo(htmlspecialchars($i["text"]));
echo("" . $i["time"] . "
");
@@ -46,4 +46,4 @@ foreach (array_reverse($rows) as $i){
}
}
-?>
\ No newline at end of file
+?>