//$markus: URL parsing bug fix: urls like markus*@*somewhere.net work.

This caused kmail to get into an infinte loop before the fix.

svn path=/trunk/kdenetwork/kmail/; revision=6874
wilder-work
Markus Wuebben 28 years ago
parent bed8ca5078
commit 8dd4520233
  1. 6
      kmreaderwin.cpp

@ -229,7 +229,7 @@ void KMReaderWin::parseMsg(KMMessage* aMsg)
KMMessagePart msgPart;
int i, numParts;
QString type, subtype, str, contDisp;
bool asIcon;
bool asIcon = false;
assert(aMsg!=NULL);
writeMsgHeader();
@ -532,13 +532,13 @@ const QString KMReaderWin::strToHtml(const QString aStr, bool aDecodeQP,
else if (ch=='@')
{
for (i=0; *pos && (isalnum(*pos) || *pos=='@' || *pos=='.' ||
*pos=='_'||*pos=='-') && i<255; i++, pos--)
*pos=='_'||*pos=='-' || *pos=='*') && i<255; i++, pos--)
{
}
i1 = i;
pos++;
for (i=0; *pos && (isalnum(*pos)||*pos=='@'||*pos=='.'||
*pos=='_'||*pos=='-') && i<255; i++, pos++)
*pos=='_'||*pos=='-' || *pos=='*') && i<255; i++, pos++)
{
iStr += *pos;
}

Loading…
Cancel
Save