diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-12-09 16:29:58 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-12-09 16:31:14 +0100 |
commit | 96339adacc867f33b7ff6a2f5c57e3a3345d796b (patch) | |
tree | 8481f3cfade8aeb9a415dbd86dae82e126df810f /tools/source/inet | |
parent | 3a36efd2345ee5e3d7d641e45fa9a8764ca8c5df (diff) |
fdo#32258: Be a little more gentle with Inet params and simply skip duplicates
Diffstat (limited to 'tools/source/inet')
-rw-r--r-- | tools/source/inet/inetmime.cxx | 5 |
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; |