[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepimlibs/4.7] kimap: KIMAP::FetchJob: When parsing a quoted
From:       Gregory Schlomoff <gregory.schlomoff () gmail ! com>
Date:       2011-08-31 22:00:18
Message-ID: 20110831220018.30FDFA60B9 () git ! kde ! org
[Download RAW message or body]

Git commit ea8d0c2d6260df8f10d3114bf5bc4d3ac8b7d771 by Gregory Schlomoff.
Committed on 31/08/2011 at 23:36.
Pushed by schlomoff into branch '4.7'.

KIMAP::FetchJob: When parsing a quoted string, we were returning the
closing quote along with the string.

M  +1    -1    kimap/fetchjob.cpp

http://commits.kde.org/kdepimlibs/ea8d0c2d6260df8f10d3114bf5bc4d3ac8b7d771

diff --git a/kimap/fetchjob.cpp b/kimap/fetchjob.cpp
index 71b437b..3096864 100644
--- a/kimap/fetchjob.cpp
+++ b/kimap/fetchjob.cpp
@@ -489,7 +489,7 @@ QByteArray FetchJobPrivate::parseString( const QByteArray &structure, int &pos )
         continue;
       }
       if ( structure[pos] == '"' ) {
-        result = structure.mid( start+1, pos - start );
+        result = structure.mid( start+1, pos - start - 1);
         pos++;
         break;
       }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic