X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/1a9bcec664787509cfa7ac83a2570e7090add55a..v3.9-11-g234326791b:/nieuws/replies.php?ds=sidebyside diff --git a/nieuws/replies.php b/nieuws/replies.php index b6285b1..0847c7e 100644 --- a/nieuws/replies.php +++ b/nieuws/replies.php @@ -7,8 +7,10 @@ $pagelink = $Page.$Args; if ($_POST) { try { @mkdir($pagelink); - $target = $pagelink.'/'.date('YmdHis').':'.$User['name'].'.txt'; - $written = file_put_contents($target, $_POST['reply']); + $target = $pagelink.'/'.date('YmdHis').':'.$User->login.'.html'; + $html = nl2br(htmlspecialchars($_POST['reply'])); + $html = "

$html

\n"; + $written = file_put_contents($target, $html); if ($written === FALSE) { throw new Exception('Fout bij opslaan'); } @@ -21,17 +23,17 @@ if ($_POST) { print '