1. 27 Jul, 2018 2 commits
  2. 25 May, 2018 1 commit
    • Check for spoofing of files without an extension · 7eb664f2
      While using the Paperclip gem, we noticed during some ad-hoc testing
      that if you do not supply an extension when uploading a file, Paperclip
      effectively skipped it's spoofing check, which allowed potentially
      dangerous files to slip through into your application.
      
      This addresses that by moving the checks around a little bit and only
      testing against the extension when there is one.
      George Walters II committed
  3. 18 May, 2018 1 commit
    • Better handling of the content-disposition header · fa37ab74
      Encountered an issue where the URI was returning header with
      content-disposition where the filename value wasn't enclosed in the
      double quotes. Turns out that this is a valid grammar according to
      RFC6266. Also made the logic more robust to account for spaces and
      uppercase letters.
      Yves Riel committed
  4. 09 Mar, 2018 2 commits
  5. 30 Jan, 2018 1 commit
  6. 25 Jan, 2018 1 commit
  7. 23 Jan, 2018 1 commit
  8. 28 Aug, 2016 1 commit
  9. 24 Aug, 2016 1 commit
    • Make fingerprint digest configurable (#2229) · 5202acbf
      Adapters now accept an options parameter, that currently specifies
      the type of hash digest to use.  The default value remains MD5, but
      can be specified to be any OpenSSL-supported digest.  The specs are
      modified to reflect that.
      
      The task just reassigns all of the attachments, thereby regenerating
      their fingerprints.
      Bart committed
  10. 19 Aug, 2016 3 commits
  11. 23 Jul, 2016 1 commit
  12. 01 Jul, 2016 1 commit
  13. 16 Jun, 2016 1 commit
  14. 24 May, 2016 1 commit
  15. 18 May, 2016 1 commit
  16. 10 May, 2016 1 commit
  17. 09 May, 2016 1 commit
  18. 30 Apr, 2016 1 commit
  19. 12 Apr, 2016 1 commit
  20. 30 Mar, 2016 1 commit
    • Respect dynamic fog directory option · 84a5d41c
      `Paperclip::Storage::Fog#host_name_for_directory` assumes a String-like
      object is set and doesn't check if `@options[:fog_directory]` is
      callable, while `Paperclip::Storage::Fog#directory` does. This extracts
      a new method with the condition and refactors the other two methods to
      call it.
      
      Fixes #2018, #2093.
      Thomas Ingram committed
  21. 23 Mar, 2016 2 commits
  22. 12 Mar, 2016 1 commit
  23. 26 Feb, 2016 1 commit
  24. 21 Oct, 2015 1 commit
  25. 10 Sep, 2015 1 commit
  26. 24 Aug, 2015 1 commit
  27. 18 Jun, 2015 1 commit
  28. 17 Jun, 2015 1 commit
  29. 05 Jun, 2015 2 commits
    • Release v4.3.0 :tada: · ecdd5427
      For the full details of what is included in this release, check out NEWS.
      
      [fixes #1875]
      maclover7 committed
    • Fix a possible security issue with spoofing · 9aee4112
      Thanks to MORI Shingo of DeNA Co., Ltd. for reporting this.
      
      There is an issue where if an HTML file is uploaded with a .html
      extension, but the content type is listed as being `image/jpeg`, this
      will bypass a validation checking for images. But it will also pass the
      spoof check, because a file named .html and containing actual HTML
      passes the spoof check.
      
      This change makes it so that we also check the supplied content type. So
      even if the file contains HTML and ends with .html, it doesn't match the
      content type of `image/jpeg` and so it fails.
      Jon Yurek committed
  30. 23 Dec, 2014 1 commit
  31. 09 Dec, 2014 1 commit
  32. 08 Jul, 2014 1 commit
  33. 22 Feb, 2014 1 commit
  34. 21 Feb, 2014 1 commit