diff options
Diffstat (limited to 'filter/source/xmlfilterdetect/filterdetect.cxx')
-rw-r--r-- | filter/source/xmlfilterdetect/filterdetect.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/xmlfilterdetect/filterdetect.cxx b/filter/source/xmlfilterdetect/filterdetect.cxx index bf6182a6a2b0..9c1d044c0964 100644 --- a/filter/source/xmlfilterdetect/filterdetect.cxx +++ b/filter/source/xmlfilterdetect/filterdetect.cxx @@ -55,8 +55,8 @@ bool IsMediaTypeXML( const OUString& mediaType ) if (!mediaType.isEmpty()) { OUString sType, sSubType; - INetContentTypes::parse(mediaType, sType, sSubType); - if (sType == "application") + if (INetContentTypes::parse(mediaType, sType, sSubType) + && sType == "application") { // RFC 3023: application/xml; don't detect text/xml if (sSubType == "xml") |