X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/159ee0f3d812c9681a00c37f6a2bcaf8a1de83bc..dfe79667de45f0dfee4a57f4988ef7e2cb352d41:/upload.inc.php?ds=inline
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
"; }