Merged revisions 890876 via svnmerge from

svn+ssh://tmcguire@svn.kde.org/home/kde/branches/KDE/4.1/kdepim

........
  r890876 | tmcguire | 2008-11-30 16:31:37 +0100 (Sun, 30 Nov 2008) | 9 lines
  
  Backport r886055 by tmcguire from trunk to the 4.1 branch:
  
  Fix possible crash when parsing the procmail file.
  Patch by George Kiagiadakis <gkiagiad at csd dot uoc dot gr>,
  thanks!
  
  CCBUG: 173964
........

svn path=/branches/kdepim/enterprise4/kdepim/; revision=890944
wilder-work
Thomas McGuire 18 years ago
parent 2d50dea079
commit d2d2d49b98
  1. 5
      accountdialog.cpp

@ -217,8 +217,9 @@ ProcmailRCParser::processLocalLock(const QString &s)
do {
prevLine = line;
line = mStream->readLine().trimmed();
} while ( !mStream->atEnd() && (line[0] == '*' ||
prevLine[prevLine.length() - 1] == '\\' ));
} while ( !mStream->atEnd() &&
( line[0] == '*' ||
prevLine.length() > 0 && prevLine[prevLine.length() - 1] == '\\' ) );
if( line[0] != '!' && line[0] != '|' && line[0] != '{' ) {
// this is a filename, expand it

Loading…
Cancel
Save