fixed attachment download bug

This commit is contained in:
SJ 2013-05-21 14:33:32 +02:00
parent 74cd173eac
commit b6eb3b13ba

View File

@ -151,7 +151,7 @@ class ModelSearchMessage extends Model {
fclose($sd); fclose($sd);
} }
else { else {
$handle = popen(DECRYPT_BINARY . " $id", "r"); $handle = popen(DECRYPT_ATTACHMENT_BINARY . " $piler_id $attachment_id", "r");
while(($buf = fread($handle, DECRYPT_BUFFER_LENGTH))){ while(($buf = fread($handle, DECRYPT_BUFFER_LENGTH))){
$data .= $buf; $data .= $buf;
} }