Review Request: Fix bug 270345 : URL parser recognizes addresses starting with http:// or https:// only

Rohan Garg rohangarg at kubuntu.org
Thu Apr 14 12:49:59 CEST 2011



> On April 14, 2011, 10:21 a.m., Rohan Garg wrote:
> > Correct me if I am wrong, but won't it be better to use KProtocolInfo::isKnownProtocol here instead of doing things manually
> 
> Francesco Nwokeka wrote:
>     Where?if you refer to line 365 then that's not possible. The url is "hidden" inside a blob of html code. That means I have to search for the url patterns and send it to the chat as a link otherwise it's not recognized.

Ah okay, KProtocolInfo can also provide you with a list of known protocols, maybe that can be used and used along.with the regex?


- Rohan


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101080/#review2631
-----------------------------------------------------------


On April 14, 2011, 9:38 a.m., Francesco Nwokeka wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101080/
> -----------------------------------------------------------
> 
> (Updated April 14, 2011, 9:38 a.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Summary
> -------
> 
> Simple patch to recognize other links other than http(s). Added smb and (s)ftp. if there are others to add please let me know
> 
> 
> This addresses bug 270345.
>     http://bugs.kde.org/show_bug.cgi?id=270345
> 
> 
> Diffs
> -----
> 
>   lib/adium-theme-view.cpp 8a8818c 
> 
> Diff: http://git.reviewboard.kde.org/r/101080/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Francesco
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-telepathy/attachments/20110414/06376191/attachment.htm 


More information about the KDE-Telepathy mailing list