Make Content-Type check case-insensitive (#5109)
This commit is contained in:
parent
8c32e31fa3
commit
e7eed4dff1
1 changed files with 1 additions and 1 deletions
|
@ -519,7 +519,7 @@ class kolab_storage_folder extends kolab_storage_folder_api
|
|||
|
||||
// get XML part
|
||||
foreach ((array)$message->attachments as $part) {
|
||||
if (!$xml && ($part->mimetype == $content_type || preg_match('!application/([a-z.]+\+)?xml!', $part->mimetype))) {
|
||||
if (!$xml && ($part->mimetype == $content_type || preg_match('!application/([a-z.]+\+)?xml!i', $part->mimetype))) {
|
||||
$xml = $message->get_part_body($part->mime_id, true);
|
||||
}
|
||||
else if ($part->filename || $part->content_id) {
|
||||
|
|
Loading…
Add table
Reference in a new issue