X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/2e1116b155ec54beb89153f37a5f0de90212815c..159ee0f3d812c9681a00c37f6a2bcaf8a1de83bc:/issue/index.php diff --git a/issue/index.php b/issue/index.php index fb6a84e..82fa39e 100644 --- a/issue/index.php +++ b/issue/index.php @@ -16,7 +16,7 @@ if ($id and ctype_digit($id)) { $author = $Issue->author ? new User('profile/'.$Issue->author, FALSE) : NULL; printf('

%s%s %s

'."\n", 'Geplaatst', - $author ? " door {$author->name}" : '', + $author ? " door {$author->html}" : '', showdate(preg_split('/\D/', $Issue->created)) ); if ($Issue->assign) { @@ -37,12 +37,11 @@ if ($id and ctype_digit($id)) { } if ($_POST) { - $html = nl2br(htmlspecialchars($_POST['body'])); - $html = empty($html) ? NULL : "

$html

"; + require_once 'upload.inc.php'; $query = $Db->set('issues', [ 'page' => $Page, 'subject' => $_POST['subject'], - 'body' => $html, + 'body' => messagehtml($_POST['body']), 'author' => $User->login, ]); if (!$query->rowCount()) { @@ -67,14 +66,15 @@ if ($id == 'feed') { ob_start(); print '