diff options
author | Vincent Richard <[email protected]> | 2006-08-25 14:36:44 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2006-08-25 14:36:44 +0000 |
commit | 29df79e4e5c9a428105856844f791f3c0f20c1d2 (patch) | |
tree | 03bc40620cb160e39f2b6e6bef17ed3da0dfd4a8 /src/encoding.cpp | |
parent | Do not treat attached text files as text parts. (diff) | |
download | vmime-29df79e4e5c9a428105856844f791f3c0f20c1d2.tar.gz vmime-29df79e4e5c9a428105856844f791f3c0f20c1d2.zip |
Fixed parsing when space occurs at the end of the field value.
Diffstat (limited to 'src/encoding.cpp')
-rw-r--r-- | src/encoding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding.cpp b/src/encoding.cpp index d373b1ff..8e0adb52 100644 --- a/src/encoding.cpp +++ b/src/encoding.cpp @@ -53,8 +53,8 @@ encoding::encoding(const encoding& enc) void encoding::parse(const string& buffer, const string::size_type position, const string::size_type end, string::size_type* newPosition) { - m_name = utility::stringUtils::toLower - (string(buffer.begin() + position, buffer.begin() + end)); + m_name = utility::stringUtils::trim(utility::stringUtils::toLower + (string(buffer.begin() + position, buffer.begin() + end))); setParsedBounds(position, end); |