mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 09:11:28 -05:00
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:
parent
79eccf3d6a
commit
4a39adc90a
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user