From 43b926c41bd5f9d8ec8df9c50e8f9fa700c42cd9 Mon Sep 17 00:00:00 2001 From: seisatsu Date: Fri, 6 Sep 2024 15:23:37 -0500 Subject: [PATCH] Fix typo in post.php that breaks Tesseract OCR Fixes a typo in post.php that causes an uninitialized variable "$value" to be referenced instead of the correct variable "$txt". This caused all attempts to use the Tesseract OCR feature to fail with an error. --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()}");