summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/post.php b/post.php
index 56bddd5d..169a55e1 100644
--- a/post.php
+++ b/post.php
@@ -166,7 +166,8 @@
error(ERR_MAXSIZE);
}
- $post['filehash'] = md5_file($post['file']);
+ $hash_function = FILE_HASH;
+ $post['filehash'] = $hash_function($post['file']);
$post['filesize'] = filesize($post['file']);
$image = createimage($post['extension'], $post['file']);