X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=model%2Fnote.php;h=f0c54cbec01e9fbe7d17dcf04184e35107c0168b;hb=HEAD;hp=8e863f12eb05934b7ce589bce36ee22b323be5c4;hpb=94f76a812b4f4f1dacd32bbcda93adeab2b5b303;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'] = "

" . htmlspecialchars($author) . "

"; $i++; } + require_once('view/comment.php'); } public function display_comment_form() {