about summary refs log tree commit diff stats
path: root/classes/Handler/GetinfoHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Handler/GetinfoHandler.php')
-rw-r--r--classes/Handler/GetinfoHandler.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/Handler/GetinfoHandler.php b/classes/Handler/GetinfoHandler.php
index e599671..86772ff 100644
--- a/classes/Handler/GetinfoHandler.php
+++ b/classes/Handler/GetinfoHandler.php
@@ -7,6 +7,7 @@ use Request;
 use RequestHandlerInterface;
 use Response;
 use PDO;
+use Sanitizer;
 
 class GetinfoHandler implements RequestHandlerInterface
 {
@@ -24,6 +25,8 @@ class GetinfoHandler implements RequestHandlerInterface
         $sth->execute([$id]);
 
         if ($row = $sth->fetch()) {
+			$row['comment'] = Sanitizer::sanitize($row['comment'] ?? "");
+
             return (new Response())->withBody(json_encode($row));
         }