X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;ds=inline;f=model%2Fnote.php;h=f0c54cbec01e9fbe7d17dcf04184e35107c0168b;hb=c41360f9f8ef81042076f94d472ebb6ecd301095;hp=8e863f12eb05934b7ce589bce36ee22b323be5c4;hpb=86ca40f0b2234a734a277ffb6cd6388b9355d1a6;p=dylansserver.git diff --git a/model/note.php b/model/note.php index 8e863f1..f0c54cb 100644 --- a/model/note.php +++ b/model/note.php @@ -85,11 +85,11 @@ class note extends model { $i = 0; foreach ($result as $row => $entry) { $this->comment[$i]['date_posted'] = $entry['date_posted']; - $this->comment[$i]['author'] = $entry['author']; + $this->comment[$i]['author'] = htmlspecialchars($entry['author']); $this->comment[$i]['text'] = htmlspecialchars($entry['text']); - $this->comment[$i]['head'] = "