Bug 108021

Summary: malformed link when clicking on it
Product: [Applications] konversation Reporter: Mike Unke <smike>
Component: generalAssignee: Konversation Developers <konversation-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mike Unke 2005-06-23 21:52:52 UTC
Version:           0.18 #3016 (using KDE 3.4.1, compiled sources)
Compiler:          gcc version 3.3.4 (pre 3.3.5 20040809)
OS:                Linux (i686) release 2.6.8-24.16-default

In the normal chat-window I receive the following message:
(www.abc.de) My Homepage - www.abc.de :: RE: Neuer Test <http://www.abc.de/./viewtopic.php?p=12579#12579>

All three links are clickable. The first two are ok, but the last one directs me to this adress which ist obvious wrong:
http://http//www.abc.de/./viewtopic.php?p=12579#12579

This bug is reproducable if I copy & paste the received message and send it again to the channel.
Comment 1 Stephan Binner 2005-06-24 16:30:33 UTC
Experienced problems with more than one link per line too...
Comment 2 Ismail Donmez 2005-06-24 17:07:35 UTC
SVN commit 428545 by cartman:

Reset protocol so multiple links works as expected.
BUG:108021



 M  +1 -0      common.cpp  


--- trunk/extragear/network/konversation/src/common.cpp #428544:428545
@@ -78,6 +78,7 @@
   }
 
   while((pos = urlPattern.search(filteredLine, pos)) >= 0) {
+    protocol="";
     urlLen = urlPattern.matchedLength();
     href = filteredLine.mid( pos, urlLen );