diff --git a/post.php b/post.php index 1f3a2b97..6f29f50c 100644 --- a/post.php +++ b/post.php @@ -1197,7 +1197,7 @@ if (isset($_POST['delete'])) { if ($txt !== '') { // This one has an effect, that the body is appended to a post body. So you can write a correct // spamfilter. - $post['body_nomarkup'] .= "" . htmlspecialchars($value) . ""; + $post['body_nomarkup'] .= "" . htmlspecialchars($txt) . ""; } } catch (RuntimeException $e) { $context->get(Log::class)->log(Log::ERROR, "Could not OCR image: {$e->getMessage()}");