X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/453dc46e0c159dab5a9f9893257fbe2c5ce47186..ebf3182ac0275887fc0609be098329dc30865ee2:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 43b773b..94018c4 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 = empty($html) ? NULL : "

$html

"; $query = $Db->set('comments', [ 'page' => $Page, - 'message' => $html, + 'message' => messagehtml($_POST['reply']), 'author' => $User->login, ]); if (!$query->rowCount()) {