Summary: | IMAP search syntax error, segfault. | ||
---|---|---|---|
Product: | [Applications] kmail | Reporter: | David Woodhouse <dwmw2> |
Component: | IMAP | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.9.1 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
David Woodhouse
2006-03-14 11:48:52 UTC
SVN commit 526877 by burghard: Only remove the / when it is not quoted - fixes wrong searches. BUGS:123605 M +8 -3 imapparser.cc --- branches/KDE/3.5/kdepim/kioslaves/imap4/imapparser.cc #526876:526877 @@ -1745,10 +1745,15 @@ { QString temp = (*it); - // if we have a '/' separator we'll just nuke it int pt = temp.find ('/'); - if (pt > 0) - temp.truncate(pt); + if (pt > 0) + { + if (temp.findRev ('"', pt) == -1 || temp.find('"', pt) == -1) + { + // if we have non-quoted '/' separator we'll just nuke it + temp.truncate(pt); + } + } if (temp.find ("section=", 0, false) == 0) _section = temp.right (temp.length () - 8); else if (temp.find ("type=", 0, false) == 0) |