Skip to content

The filter seems to corrupt certain files #2

@julienfromentc

Description

@julienfromentc

Hello,

After testing the latest filter, we found some case where when we upload certain files, the files that gets saved is "corrupted".

You can find an offending file here: https://github.com/julienfromentc/struts1filter-issue/raw/master/PDF.PDF, in this case the resulting PDF will be blank page.

Update:
It seems the issue happens with the following characters:

  • 81
  • 8D
  • 8F
  • 90
  • 9D

Those characters are undefined in Windows1252 (http://en.wikipedia.org/wiki/Windows-1252). After the string conversion, those chars are transformed to '?'. So if we could convert the read the inputstream in an other encoding, the issue could be fixed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions