diff options
| author | czaks <marcin@6irc.net> | 2014-09-27 11:31:30 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-09-27 11:31:30 +0200 |
| commit | ef53af04ec42359d66489b10dee0f4f1778c3b0a (patch) | |
| tree | 4964489de8adcc465f95c99a2438e60470c44243 /inc/api.php | |
| parent | 629b1c92a6cb6971da36bcc84e38d9e6600e7124 (diff) | |
fix a recently added md5 api field
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; |
