1. 19 Jan, 2020 1 commit
  2. 21 Sep, 2016 1 commit
  3. 15 Dec, 2014 1 commit
  4. 29 Oct, 2014 1 commit
  5. 11 Apr, 2014 1 commit
  6. 27 Feb, 2014 1 commit
    • Martin Klapetek's avatar
      Merge escape and URL filters into one · a7df31b7
      Martin Klapetek authored
      This is needed to avoid the URL filter detecting wrong link boundaries
      as the escape filter would change eg. "<http://kde.org/>" to
      &lt;http://kde.org/&gt; 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 &lt;a href.../a&gt; 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
      BUG: 329875
      FIXED-IN: 0.8.0
  7. 26 Aug, 2013 1 commit
    • Daniel Vrátil's avatar
      KTp Logger · d934faab
      Daniel Vrátil authored
      KTp Logger is an abstract interface, losely based on TelepathyLoggerQt
      API with support for version backends - currently we only have a
      TelepathyLogger backend.
      By using this API instead of TelepathyLoggerQt directly we can simply
      disable the backend on platforms where TpLoggerQt does not compile
      (like Windows) without having to have many #ifdefs all around our
      In future we can have plugins that would provide access to log messages
      from Facebook or Google Hangouts (if they ever publish an API) etc.
      REVIEW: 112005
  8. 25 Jul, 2013 1 commit
  9. 15 May, 2013 1 commit
  10. 24 Mar, 2013 1 commit
  11. 14 Mar, 2013 1 commit
    • David Edmundson's avatar
      Add a new class for processing outgoing messages · 71c92b36
      David Edmundson authored
      Currently we re-use KTp::Message, this exposes a lot of setters and getters that have no use before we send a message.
      It also mixes HTML and plain text which has already led to one bug, and would probably lead to more.
      This keeps the API cleaner and simpler
      REVIEW: 109403
  12. 10 Mar, 2013 1 commit
  13. 03 Mar, 2013 3 commits
  14. 02 Mar, 2013 2 commits
  15. 02 Feb, 2013 2 commits
    • David Edmundson's avatar
    • David Edmundson's avatar
      Generally fix MessageProcessor to match the original design · 1d8ae32c
      David Edmundson authored
       - Make Message constructor private and a friend class of the message processor. This simplifies code, and makes accidentally skipping the escape filtering impossible
       - Message now has two extra properties isHistory and messageDirection
       - Message filters have access to the "message context" the account/channel in which the message was received
       - Remove the broken filterIncomingMessage / filterOutgoingMessages with just one method. Plugins can use messageDirection to get the same functionality
      This is a setup to fix a range of bugs in the message filters
  16. 14 Jan, 2013 1 commit
  17. 06 Jan, 2013 1 commit
  18. 21 Sep, 2012 3 commits
  19. 11 Sep, 2012 1 commit
  20. 31 Aug, 2012 1 commit
  21. 10 Aug, 2012 1 commit
    • David Edmundson's avatar
      Run backlog through message processor · 2b90b5e4
      David Edmundson authored
      Message now supports construction from both Tp::Message and
      Tpl::Message, this is now used by the message processor.
      LogManager is updated to run messages through the message processor
      REVIEW: 105943
  22. 05 Aug, 2012 5 commits
  23. 25 Jun, 2012 8 commits
    • Lasath Fernando's avatar
      Hardcode EscapeFilter · e90325f6
      Lasath Fernando authored
      As promised, this re-adds Escaping, except this time as a hardcoded
      filter, becuase we determined that such an essential security
      feature should not be optional.
    • Lasath Fernando's avatar
      Fix potential bug in hack · 54871864
      Lasath Fernando authored
      The remove isn't in a Q_ASSERT, so now the EscapeFilter won't end
      up in the queue twice if asserts are disabled.
    • Lasath Fernando's avatar
      Hack MessageProcessor to run EscapeFilter first · fc3495f4
      Lasath Fernando authored
      It currently iterates through the list of loaded plugins, finds
      EscapeFilter by name, and sticks it to the front of the list.
    • Lasath Fernando's avatar
      Add series of tests for UrlFilter · cc0f1517
      Lasath Fernando authored
      UrlFilter is still hardcoded in lib.
      It will be moved in a later
      commit, but since it's currently candidate to be replaced by
      some code in ktp-common-internals, I want to make sure there's
      an extensive set of tests first.
    • Lasath Fernando's avatar
      Fix imports in MessageProcessor · bc72e088
      Lasath Fernando authored
      Use forward-declarations instead of #includes whenever possible.
    • Lasath Fernando's avatar
      Remove EscapeFilter · da28f38b
      Lasath Fernando authored
      This commit removes it completely from /lib. It will be added as a
      plugin in a later commit.
      Note: testEscape() now fails.
    • Lasath Fernando's avatar
      Imlpement PluginLoader · 7b7d7de4
      Lasath Fernando authored
      MessageProcessor now uses a KPluginLoader to load all the filters
      dynamically at runtime. The tests for emoticonFilter pass even
      though it's in its own plugin, so all this should be working
    • Lasath Fernando's avatar
      Move EmoticonFilter into it's own plugin · 4a247488
      Lasath Fernando authored
      The first plugin was created, all it's kinks worked out (was a pain
      in the ass) and EmoticonFilter was moved into it. It now compiles,
      but there is no way of testing the loader hasn't been written yet.