summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-01-02 22:45:25 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-01-02 22:45:25 +1100
commite23aa7a7368f9c373f7593976ab84f8f093e5cbd (patch)
treee77e0bb9c6467c69d063670ff2fbaf32bd6b0ed0 /post.php
parent90b48f128b84268e04d9dc795d9f9631ea188c20 (diff)
FILE_HASH in config.php
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']);