Fix bug 39088: 'http://' (and others) create a link

svn path=/trunk/kdenetwork/kmail/; revision=141911
wilder-work
Ingo Klcker 24 years ago
parent 030601ec19
commit b704b6b5f2
  1. 7
      kmreaderwin.cpp

@ -1590,7 +1590,12 @@ QString KMReaderWin::strToHtml(const QString &aStr, bool aPreserveBlanks) const
pos--;
}
str.truncate(i);
result += "<a href=\"" + str + "\">" + str + "</a>";
// don't create link if url is empty
if( ( str == "http://" ) || ( str == "https://" ) ||
( str == "ftp://" ) || ( str == "mailto" ) )
result += str;
else
result += "<a href=\"" + str + "\">" + str + "</a>";
}
else if (ch=='@')
{

Loading…
Cancel
Save