comphelper/source/misc/graphicmimetype.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3adcd9fa929e7ed072877536df93558c6add05c8
Author:     Karthik Godha <[email protected]>
AuthorDate: Mon Dec 29 19:02:58 2025 +0530
Commit:     Michael Stahl <[email protected]>
CommitDate: Fri Jan 2 14:07:10 2026 +0100

    ODP->PPTX: Incorrect MimeType for media files
    
    If a media file's name has its file extension in uppercase then the
    mime type is not handled.
    Example: audio1.mp3 is handled but audio1.MP3 is not handled
    
    bug document: tdf123653-1.odp
    
    Change-Id: If220283b1a447cde0a070853192638ee5f30c87b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196302
    Reviewed-by: Michael Stahl <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/comphelper/source/misc/graphicmimetype.cxx 
b/comphelper/source/misc/graphicmimetype.cxx
index 493da0ee6887..fc21a29cef75 100644
--- a/comphelper/source/misc/graphicmimetype.cxx
+++ b/comphelper/source/misc/graphicmimetype.cxx
@@ -224,7 +224,8 @@ auto GuessMediaMimeType(::std::u16string_view rFileName) -> 
OUString
 {
     if (auto const i = rFileName.rfind('.'); i != ::std::string_view::npos)
     {
-        OString const ext(OUStringToOString(rFileName.substr(i + 1), 
RTL_TEXTENCODING_UTF8));
+        OString const ext(
+            OUStringToOString(rFileName.substr(i + 1), 
RTL_TEXTENCODING_UTF8).toAsciiLowerCase());
         auto const& rMap(GetMediaMimes());
         auto const it(rMap.find(ext));
         if (it != rMap.end())

Reply via email to