X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/72aa68cdc990dde3d67b9c8827cd794e4c447968..df953b78c421e60f37832fa4581e5d3ca2a1bd8d:/upload.inc.php
diff --git a/upload.inc.php b/upload.inc.php
index e70f573..7810ff6 100644
--- a/upload.inc.php
+++ b/upload.inc.php
@@ -52,8 +52,8 @@ function messagehtml($input)
return $input; # allow html input as is if privileged
}
$html = preg_replace(
- ["/\r?\n/", "'(?:
\n?){2}'"],
- ["
\n", "
"],
+ ["/\r\n?/", "/ +\n/", "/\n/"],
+ ["\n", "
", "
"], htmlspecialchars($input) ); return "
$html
";