mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 09:27:24 +01:00
Merge pull request #807 from seisatsu/dev
Fix typo in post.php that breaks Tesseract OCR
This commit is contained in:
commit
ce844b9270
2
post.php
2
post.php
@ -1197,7 +1197,7 @@ if (isset($_POST['delete'])) {
|
|||||||
if ($txt !== '') {
|
if ($txt !== '') {
|
||||||
// This one has an effect, that the body is appended to a post body. So you can write a correct
|
// This one has an effect, that the body is appended to a post body. So you can write a correct
|
||||||
// spamfilter.
|
// spamfilter.
|
||||||
$post['body_nomarkup'] .= "<tinyboard ocr image $key>" . htmlspecialchars($value) . "</tinyboard>";
|
$post['body_nomarkup'] .= "<tinyboard ocr image $key>" . htmlspecialchars($txt) . "</tinyboard>";
|
||||||
}
|
}
|
||||||
} catch (RuntimeException $e) {
|
} catch (RuntimeException $e) {
|
||||||
$context->get(Log::class)->log(Log::ERROR, "Could not OCR image: {$e->getMessage()}");
|
$context->get(Log::class)->log(Log::ERROR, "Could not OCR image: {$e->getMessage()}");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user