diff options
-rw-r--r-- | filter/source/xmlfilterdetect/filterdetect.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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; } } |