summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-03-02 11:26:51 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-03-02 11:26:51 +0900
commitb4c53e4474f8b4d80d4292b49138ccf5d3021b33 (patch)
tree8225b0f93a64433e5f7ee203abac0279a99e22a1 /post.php
parent7f53755f7586bdf8d2ea7f0f4ae8ac0515507b56 (diff)
Fix relative path to temporary directory for Tesseract OCR
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index 1924eca4..835633b8 100644
--- a/post.php
+++ b/post.php
@@ -1006,7 +1006,7 @@ if (isset($_POST['delete'])) {
if ($fname == 'spoiler') { // We don't have that much CPU time, do we?
}
else {
- $tmpname = "tmp/tesseract/".rand(0,10000000);
+ $tmpname = __DIR__ . "/tmp/tesseract/".rand(0,10000000);
// Preprocess command is an ImageMagick b/w quantization
$error = shell_exec_error(sprintf($config['tesseract_preprocess_command'], escapeshellarg($fname)) . " | " .