1. 07 Feb, 2012 7 commits
  2. 06 Feb, 2012 4 commits
  3. 02 Feb, 2012 1 commit
    • Richard Mansfield's avatar
      Remove unnecessary sanitisation from forum notifications (bug #882894) · 1c022eed
      Richard Mansfield authored
      In commit 93c012f2
      
      , the forum and group name were added to the body
      of forum post email notifications, each wrapped in a call to
      clean_html (htmlpurifier).  This crashes cron due to out-of-memory
      errors whenever there are more than a few subscribers, and stops
      notifications from being sent out at all.
      
      The forum and group name only need to be rendered once per forum post,
      so this could be fixed by moving the clean_html call up to the
      activity constructor, rather than doing it in the get_emailmessage,
      get_htmlmessage functions.  These functions get called for every
      single subscriber notification, to ensure the string is displayed in
      the subscriber's language.
      
      But because group and forum names are never rendered as html, we don't
      need to use htmlpurifier - html escaping is more appropriate and less
      memory-hungry.
      
      Change-Id: I0a4133b0a11e0e0004bdab1c29984ab4fc5dfbbf
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      1c022eed
  4. 01 Feb, 2012 2 commits
  5. 31 Jan, 2012 7 commits
  6. 30 Jan, 2012 4 commits
  7. 29 Jan, 2012 1 commit
  8. 27 Jan, 2012 2 commits
  9. 26 Jan, 2012 9 commits
  10. 25 Jan, 2012 1 commit
  11. 22 Jan, 2012 1 commit
  12. 20 Jan, 2012 1 commit