1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00

Merge pull request #807 from seisatsu/dev

Fix typo in post.php that breaks Tesseract OCR
This commit is contained in:
Lorenzo Yario 2024-09-17 21:00:51 -07:00 committed by GitHub
commit ce844b9270
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'] .= "<tinyboard ocr image $key>" . htmlspecialchars($value) . "</tinyboard>";
$post['body_nomarkup'] .= "<tinyboard ocr image $key>" . htmlspecialchars($txt) . "</tinyboard>";
}
} catch (RuntimeException $e) {
$context->get(Log::class)->log(Log::ERROR, "Could not OCR image: {$e->getMessage()}");