X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/159ee0f3d812c9681a00c37f6a2bcaf8a1de83bc..25b7f8464704469cc4641bbb096c11f548b5a153:/upload.inc.php?ds=sidebyside
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}"', "
", nl2br($html)); return "
$html
"; }