git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doclist: timeline styling to position links by age
[minimedit.git]
/
upload.inc.php
diff --git
a/upload.inc.php
b/upload.inc.php
index ed9ee772eccf99f8595f69efd67ee16d57432b1d..4eff8a09cdcc07374e8ac7e6228bf6c797d0c174 100644
(file)
--- a/
upload.inc.php
+++ b/
upload.inc.php
@@
-45,6
+45,6
@@
function messagehtml($input)
return;
}
$html = htmlspecialchars($input);
return;
}
$html = htmlspecialchars($input);
- $html =
nl2br($html
);
+ $html =
preg_replace('"(?:<br />){2}"', "</p>\n\n<p>", nl2br($html)
);
return "<p>$html</p>";
}
return "<p>$html</p>";
}