From b6eb3b13ba11a41c9f887837fc326886d32a6ca3 Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 21 May 2013 14:33:32 +0200 Subject: [PATCH] fixed attachment download bug --- webui/model/search/message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index e0a987b8..0fe58e38 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -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; }