diff options
| author | kaernyk <kaernyk@users.noreply.github.com> | 2014-09-28 04:27:57 -0400 |
|---|---|---|
| committer | kaernyk <kaernyk@users.noreply.github.com> | 2014-09-28 04:27:57 -0400 |
| commit | 197e4d4bfcb5a312a699e1f6d012da03ee36fbe2 (patch) | |
| tree | 04658fcf30a02d2ffc7a34442b77c06d733ee83c /inc | |
| parent | a3c03932c31b952a73ce614ab651cef7fd986451 (diff) | |
| parent | cb7b7d070cad4286c998579d4cd263b9979535ef (diff) | |
Merge pull request #1 from vichan-devel/master
Merge changes in upstream
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/api.php b/inc/api.php index 3769a9c9..31cf2293 100644 --- a/inc/api.php +++ b/inc/api.php @@ -113,7 +113,7 @@ class Api { $apiPost['ext'] = substr($file->file, $dotPos); $dotPos = strrpos($file->file, '.'); $apiPost['tim'] = substr($file->file, 0, $dotPos); - $apiPost['md5'] = base64_encode(md5_file($file->file_path, true)); + $apiPost['md5'] = base64_encode(hex2bin($post->filehash)); } return $apiPost; |
