Revision a7df31b...

Go back to digest for 2nd March 2014

Optimization in Networking Tools

Martin Klapetek committed changes in [ktp-common-internals] /:

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/>" target="_blank">http://kde.org/>;" to
<http://kde.org/>" target="_blank">http://kde.org/>; and then the URL filter would detect
"http://kde.org/&gt" 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

File Changes

Deleted 1 files
  • KTp/message-url-filter.cpp
Modified 3 files
  •   KTp/CMakeLists.txt
  •   KTp/message-escape-filter.cpp
  •   KTp/message-processor.cpp
4 files changed in total