Summary: | KTP doesn’t recognize well URL patterns | ||
---|---|---|---|
Product: | [Unmaintained] telepathy | Reporter: | ariasuni <aria> |
Component: | text-ui | Assignee: | Telepathy Bugs <kde-telepathy-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hein, kde, mklapetek |
Priority: | NOR | ||
Version: | 0.7.0 | ||
Target Milestone: | 0.8.0 | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/telepathy-common-internals/a7df31b729f85cb7381263789010b6bc4aba9e88 | Version Fixed In: | 0.8.0 |
Sentry Crash Report: |
Description
ariasuni
2014-01-12 13:57:16 UTC
We're using Konversation's parsing, CC'ing its developer for input. I don't think you are anymore (Konversation has no problems with the above). Hah, I'm pretty sure we didn't change anything. Maybe it's related to us using a webview for the conversation (and where the links are displayed). Ok, will investigate. Confirmed. Right in konvi, wrong here. Not sure why. Confirming this issue, we can reproduce. Git commit a7df31b729f85cb7381263789010b6bc4aba9e88 by Martin Klapetek. Committed on 27/02/2014 at 17:36. Pushed by mklapetek into branch 'master'. Merge escape and URL filters into one This is needed to avoid the URL filter detecting wrong link boundaries as the escape filter would change eg. "<http://kde.org/>" to <http://kde.org/> and then the URL filter would detect "http://kde.org/>" as the actual link. Switching the order wouldn't help because the escape filter would escape the newly inserted <a href...> links and the user would get <a href.../a> and no clickable links. Therefore we first detect the links, replace them with placeholders, then escape everything, then replace placeholders with actual links. Reviewed-by: David Edmundson FIXED-IN: 0.8.0 M +0 -1 KTp/CMakeLists.txt M +53 -1 KTp/message-escape-filter.cpp M +2 -1 KTp/message-processor.cpp D +0 -60 KTp/message-url-filter.cpp http://commits.kde.org/telepathy-common-internals/a7df31b729f85cb7381263789010b6bc4aba9e88 |