CVS commit by strojil:
Handle the case without protocol specification separately to be able to add "http://" otherwise we get a link that is clickable but does not do anything
M +2 -1 kopetemessage.cpp 1.117
--- kdenonbeta/kopete/libkopete/kopetemessage.cpp #1.116:1.117
@@ -480,5 +480,6 @@ QString KopeteMessage::parseLinks( const
//Replace http/https/ftp links
- result.replace( QRegExp( QString::fromLatin1("\\b((http://\\w|ftp://\\w|https://\\w|www\\.)[-\\w\\._]+[-\\w\\./#&;:=\\?~%_,]*)\\b") ), QString::fromLatin1("\\1" ) );
+ result.replace( QRegExp( QString::fromLatin1("\\b((http://\\w|ftp://\\w|https://\\w)[-\\w\\._]+[-\\w\\./#&;:=\\?~%_,]*)\\b") ), QString::fromLatin1("\\1" ) );
+ result.replace( QRegExp( QString::fromLatin1("\\b((www\\.)[-\\w\\._]+[-\\w\\./#&;:=\\?~%_,]*)\\b") ), QString::fromLatin1("\\1" ) );