X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/159ee0f3d812c9681a00c37f6a2bcaf8a1de83bc..c83e7f0379552fd2c39c99d8827cb5dcaf05a8c7:/upload.inc.php diff --git a/upload.inc.php b/upload.inc.php index ed9ee77..4eff8a0 100644 --- a/upload.inc.php +++ b/upload.inc.php @@ -45,6 +45,6 @@ function messagehtml($input) return; } $html = htmlspecialchars($input); - $html = nl2br($html); + $html = preg_replace('"(?:
){2}"', "

\n\n

", nl2br($html)); return "

$html

"; }