MIMEManager: use lowercase MIME when calling GetSupportingApps()
The list of supporting applications is generated case-insensitive by making all items lowercase, see src/kits/storage/mime/SupportingApps.cpp:302 Force the MIME type to lowercase before calling GetSupportingApps() or a MIME containing uppercase isn't found. Fixes #18752 Change-Id: I38252cd1be8f059d7df4bf8775855b6343a489c0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7340 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
parent
591a1d179a
commit
3ab43722bf
@ -180,10 +180,11 @@ MIMEManager::MessageReceived(BMessage *message)
|
||||
|
||||
case B_REG_MIME_GET_SUPPORTING_APPS:
|
||||
{
|
||||
const char *type;
|
||||
BString type;
|
||||
err = message->FindString("type", &type);
|
||||
|
||||
if (!err)
|
||||
err = fDatabase.GetSupportingApps(type, &reply);
|
||||
err = fDatabase.GetSupportingApps(type.ToLower(), &reply);
|
||||
|
||||
reply.what = B_REG_RESULT;
|
||||
reply.AddInt32("result", err);
|
||||
|
Loading…
Reference in New Issue
Block a user