Disable email attachment posting when $config['attachments']['uploads'] = false
http://laconi.ca/trac/ticket/1721
This commit is contained in:
parent
d20d1a4823
commit
fbb0df9f54
|
@ -318,9 +318,12 @@ class MailerDaemon
|
|||
&& $parsed->ctype_secondary=='plain') {
|
||||
$msg = $parsed->body;
|
||||
}else if(!empty($parsed->body)){
|
||||
$attachment = tmpfile();
|
||||
fwrite($attachment, $parsed->body);
|
||||
$attachments[] = $attachment;
|
||||
if(common_config('attachments', 'uploads')){
|
||||
//only save attachments if uploads are enabled
|
||||
$attachment = tmpfile();
|
||||
fwrite($attachment, $parsed->body);
|
||||
$attachments[] = $attachment;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user