Skip to content
Snippets Groups Projects
  1. Sep 29, 2014
  2. Jul 30, 2014
  3. Jul 17, 2014
    • Peter Rotich's avatar
      Fix XSS vulnerability on user's name · 92824412
      Peter Rotich authored
      Names parsed from incoming emails are stored in the database as is. This
      pull request addresses potential XSS vulnerability due to improper display
      of unsanitized names. Going forward names will be scrubbed on create.
      92824412
  4. Jun 10, 2014
  5. May 21, 2014
    • Jared Hancock's avatar
      Fix external image in an inline <a> element · 99e719d9
      Jared Hancock authored
      htmLawed stripped/discarded <div> tags nested inside inline tags such as
      <a>. The previous replacement engine would replace <img> tags with <div>
      tags and would cause the HTML to be corrupted by htmLawed.
      
      This patch uses <span> tags which have CSS rules to be displayed as
      inline-blocks. This should stay truer to the normal sizing and placement of
      the original <img> tag.
      99e719d9
  6. May 13, 2014
  7. May 07, 2014
  8. Apr 18, 2014
  9. Apr 16, 2014
    • Jared Hancock's avatar
      html: Avoid corrupting quoted style attributes · 1f625787
      Jared Hancock authored
      For instance, current this style we be converted as
      ```
      <span style="font-family:'courier new';">
      ```
      to
      ```
      <span style="font-family:&quot;">
      ```
      
      Also discard Microsoft Office specific style attributes such as `mso-list`
      and friends
      1f625787
  10. Apr 15, 2014
  11. Apr 09, 2014
  12. Mar 13, 2014
    • Jared Hancock's avatar
      html: Be careful not to strip too much · fb4f01ca
      Jared Hancock authored
      If there is content between to <style> elements, the content was previously
      stripped by Format::safe_html function. This patch adjusts the regex to
      strip tags such as <head>, <script> and <style> so that if content is found
      between two of them, it will be preserved.
      fb4f01ca
  13. Feb 28, 2014
  14. Feb 20, 2014
    • Jared Hancock's avatar
      Place the message-id in the body of the email · f954d69f
      Jared Hancock authored
      This approach will help detect responses to the ticket thread from mail
      clients which do not include the References and In-Reply-To MIME headers.
      This also allows the Subject line to continue to omit the ticket number.
      f954d69f
  15. Feb 10, 2014
  16. Feb 05, 2014
  17. Jan 30, 2014
  18. Jan 29, 2014
  19. Nov 21, 2013
  20. Nov 20, 2013
    • Jared Hancock's avatar
      html: Reduce dependency on htmlchars · 2f62149d
      Jared Hancock authored
      Previously, html-like content would have to be run through Format::htmlchars
      before being passed to Format::sanitize, because things that looked like
      invalid html content would be removed.
      2f62149d
  21. Nov 19, 2013
  22. Nov 15, 2013
  23. Nov 14, 2013
  24. Nov 01, 2013
  25. Oct 31, 2013
  26. Oct 29, 2013
  27. Oct 25, 2013
  28. Oct 23, 2013
  29. Oct 22, 2013
  30. Oct 21, 2013
    • Jared Hancock's avatar
      Remove <style> and <head> elements · 89fddceb
      Jared Hancock authored
      Upgrade to htmLawed 1.1.16
      
      Remove @id attributes as they could confuse existing id attributes used for
      styling and javascript.
      
      Remove @class attributes except for standard ones used by Microsoft® office
      which have entries in our thread stylesheet.
      89fddceb
Loading