backport of r1852

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.4.x@1857 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-12-02 23:00:31 +00:00
parent 79eccf3d6a
commit 4a39adc90a

View File

@ -256,7 +256,7 @@ void PopupChatDialog::addChatMsg(ChatInfo *ci)
QString message = QString::fromStdWString(ci -> msg);
//replace http:// and www. with <a href> links
QRegExp rx("(http://[^ <>]*)|(www\\.[^ <>]*)");
QRegExp rx("(https?://[^ <>]*)|(www\\.[^ <>]*)");
int count = 0;
int pos = 100; //ignor the first 100 charater because of the standard DTD ref
while ( (pos = rx.indexIn(message, pos)) != -1 ) {