];
if ($_POST) {
+ require_once 'upload.inc.php';
try {
- $html = nl2br(htmlspecialchars($_POST['reply']));
- $html = empty($html) ? NULL : "<p>$html</p>";
$query = $Db->set('comments', [
'page' => $Page,
- 'message' => $html,
+ 'message' => messagehtml($_POST['reply']),
'author' => $User->login,
]);
if (!$query->rowCount()) {
'value' => $updated->$col,
]);
}
+ $Issue = $updated;
}
}
$_POST['reply'] = NULL;
printf('<strong>%s</strong> <small class=date>%s</small>',
$rowuser->html, showdate(preg_split('/\D/', $row->created))
);
- printf("<blockquote>%s</blockquote>\n", $row->message);
+ printf("<blockquote>\n%s</blockquote>\n", $row->message);
if ($changes = json_decode($row->journal)) {
print '<ul>';
foreach ($changes as $change) {