filter/source/xmlfilterdetect/filterdetect.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 97f048e633f07655eda000ae4f4da818c935091e
Author: Mike Kaganski <mike.kagan...@collabora.com>
Date:   Wed Apr 5 10:11:36 2017 +0300

    sType and sSubType are already normalized to ASCII lower case
    
    ... upon successful return from INetContentType::parse
    
    Change-Id: I8a0c50c1c655477138578e59031b64fb6b2b7218
    Reviewed-on: https://gerrit.libreoffice.org/36129
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/filter/source/xmlfilterdetect/filterdetect.cxx 
b/filter/source/xmlfilterdetect/filterdetect.cxx
index b8937fbd7608..bf6182a6a2b0 100644
--- a/filter/source/xmlfilterdetect/filterdetect.cxx
+++ b/filter/source/xmlfilterdetect/filterdetect.cxx
@@ -56,13 +56,13 @@ bool IsMediaTypeXML( const OUString& mediaType )
     {
         OUString sType, sSubType;
         INetContentTypes::parse(mediaType, sType, sSubType);
-        if (sType.equalsIgnoreAsciiCase("application"))
+        if (sType == "application")
         {
             // RFC 3023: application/xml; don't detect text/xml
-            if (sSubType.equalsIgnoreAsciiCase("xml"))
+            if (sSubType == "xml")
                 return true;
             // Registered media types: application/XXXX+xml
-            if (sSubType.endsWithIgnoreAsciiCase("+xml"))
+            if (sSubType.endsWith("+xml"))
                 return true;
         }
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to