git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upload: replace double line breaks by paragraphs in text input
[minimedit.git]
/
widget
/
reply.php
diff --git
a/widget/reply.php
b/widget/reply.php
index 53fe34fb32ec31c3e2c5698a72bd798979be35cd..94018c4e2492606caaa4845a58d78f23bf1b5b1e 100644
(file)
--- a/
widget/reply.php
+++ b/
widget/reply.php
@@
-7,12
+7,11
@@
$journalcol = [
];
if ($_POST) {
];
if ($_POST) {
+ require_once 'upload.inc.php';
try {
try {
- $html = nl2br(htmlspecialchars($_POST['reply']));
- $html = "<p>$html</p>";
$query = $Db->set('comments', [
'page' => $Page,
$query = $Db->set('comments', [
'page' => $Page,
- 'message' =>
$html
,
+ 'message' =>
messagehtml($_POST['reply'])
,
'author' => $User->login,
]);
if (!$query->rowCount()) {
'author' => $User->login,
]);
if (!$query->rowCount()) {