X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/159ee0f3d812c9681a00c37f6a2bcaf8a1de83bc..6413bd827c1245654f5cef0198ba5bb69a5f3863:/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

"; }