summaryrefslogtreecommitdiff
path: root/tools/source/inet/inetmime.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/inet/inetmime.cxx')
-rw-r--r--tools/source/inet/inetmime.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index 55093db3a2a5..945c2fd9657e 100644
--- a/tools/source/inet/inetmime.cxx
+++ b/tools/source/inet/inetmime.cxx
@@ -1145,8 +1145,6 @@ sal_Char const * INetMIME::scanParameters(sal_Char const * pBegin,
bool bPresent;
Parameter ** pPos = aList.find(aAttribute, nSection, bPresent);
- if (bPresent)
- break;
bool bExtended = false;
if (p != pEnd && *p == '*')
@@ -1303,7 +1301,8 @@ sal_Char const * INetMIME::scanParameters(sal_Char const * pBegin,
pTokenBegin, static_cast< xub_StrLen >(p - pTokenBegin));
}
- *pPos = new Parameter(*pPos, aAttribute, aCharset, aLanguage, aValue,
+ if (!bPresent)
+ *pPos = new Parameter(*pPos, aAttribute, aCharset, aLanguage, aValue,
nSection, bExtended);
}
return parseParameters(aList, pParameters) ? pParameterBegin : pBegin;