mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 08:10:12 +01:00
fixed attachment download bug
This commit is contained in:
parent
74cd173eac
commit
b6eb3b13ba
@ -151,7 +151,7 @@ class ModelSearchMessage extends Model {
|
||||
fclose($sd);
|
||||
}
|
||||
else {
|
||||
$handle = popen(DECRYPT_BINARY . " $id", "r");
|
||||
$handle = popen(DECRYPT_ATTACHMENT_BINARY . " $piler_id $attachment_id", "r");
|
||||
while(($buf = fread($handle, DECRYPT_BUFFER_LENGTH))){
|
||||
$data .= $buf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user