diff options
| author | kaernyk <kaernyk@gmail.com> | 2014-09-28 04:30:22 -0400 |
|---|---|---|
| committer | kaernyk <kaernyk@gmail.com> | 2014-09-28 04:30:22 -0400 |
| commit | f6e827ca75453f8769d725056460194c55c95696 (patch) | |
| tree | 22cce8b0a7c1eb8d459b1233105566e5e28daf90 /inc/api.php | |
| parent | 78cf4a8b56393358a6383d258bc237e481b7b323 (diff) | |
| parent | 197e4d4bfcb5a312a699e1f6d012da03ee36fbe2 (diff) | |
Merge branch 'master' of https://github.com/kaernyk/vichan
Conflicts:
stylesheets/style.css
Diffstat (limited to 'inc/api.php')
| -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; |
