X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/2aeb3486d5598fec6a6b58c37abead5a829678ad..90195dc7b356af20763a01246d9e5611f8d667d0:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 53fe34f..fd01a94 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -7,12 +7,11 @@ $journalcol = [ ]; if ($_POST) { + require_once 'upload.inc.php'; try { - $html = nl2br(htmlspecialchars($_POST['reply'])); - $html = "

$html

"; $query = $Db->set('comments', [ 'page' => $Page, - 'message' => $html, + 'message' => messagehtml($_POST['reply']), 'author' => $User->login, ]); if (!$query->rowCount()) { @@ -47,6 +46,7 @@ if ($_POST) { 'value' => $updated->$col, ]); } + $Issue = $updated; } } $_POST['reply'] = NULL;