filter/source/xmlfilterdetect/filterdetect.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 464fa1b40f5e4f5f7dcee8ba73243b64042ce69e Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Apr 7 10:43:23 2017 +0200 cid#1404877: Check return value Change-Id: I6199a7604f8c978a6ebe3537f7df322f32d95c77 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") _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits