From 8dd4520233796ac4fef6a8f7e13d13daa9f570be Mon Sep 17 00:00:00 2001 From: Markus Wuebben Date: Mon, 20 Apr 1998 00:16:13 +0000 Subject: [PATCH] //$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 --- kmreaderwin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kmreaderwin.cpp b/kmreaderwin.cpp index b287715ac..edc4944f4 100644 --- a/kmreaderwin.cpp +++ b/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; }