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') {
|
&& $parsed->ctype_secondary=='plain') {
|
||||||
$msg = $parsed->body;
|
$msg = $parsed->body;
|
||||||
}else if(!empty($parsed->body)){
|
}else if(!empty($parsed->body)){
|
||||||
$attachment = tmpfile();
|
if(common_config('attachments', 'uploads')){
|
||||||
fwrite($attachment, $parsed->body);
|
//only save attachments if uploads are enabled
|
||||||
$attachments[] = $attachment;
|
$attachment = tmpfile();
|
||||||
|
fwrite($attachment, $parsed->body);
|
||||||
|
$attachments[] = $attachment;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user