summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2017-04-05 10:11:36 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2017-04-05 09:40:15 +0000
commit97f048e633f07655eda000ae4f4da818c935091e (patch)
tree8e4543acc18f5640f7cd8c9fec2e1165eac31fd6 /filter
parent01a4269a2e0e242e4d9b874e501c6245d014a312 (diff)
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 <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xmlfilterdetect/filterdetect.cxx6
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;
}
}