Make Content-Type check case-insensitive (#5109)

This commit is contained in:
Aleksander Machniak 2016-02-11 15:37:21 +01:00
parent 8c32e31fa3
commit e7eed4dff1

View file

@ -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) {