Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method not found: get_SanitizeForInjection() #45

Open
completej opened this issue Apr 30, 2023 · 0 comments
Open

Method not found: get_SanitizeForInjection() #45

completej opened this issue Apr 30, 2023 · 0 comments

Comments

@completej
Copy link

Describe the bug
ExcelWriter fails to export.

To Reproduce
Steps to reproduce the behavior:

  1. Use CsvHelper 29+

Expected behavior
ExcelWriter should export to xlsx as expected

Versions (please complete the following information):

  • CSVHelper: 29.0.0
  • CSVHelper.Excel.Core: 27.2.1

From CsvHelper changelog @ https://joshclose.github.io/CsvHelper/change-log/ :

Changed CsvConfiguration.SanitizeInjection flag to CsvConfiguration.InjectionOptions enum.

Options are:
    None - Default. Does no injection protection. The is default because it's not a part of CSV and is used for an external tool.
    Escape - Escapes the field based on OWASP recommendations if an injection char is detected.
    Strip - Removes the injection character.
    Exception - Throws an exception if an injection char is detected.
Added \t and \r to CsvConfiguration.InjectionEscapeCharacter.
Changed CsvConfiguration.InjectionEscapeCharacter from \t to '.

and

Breaking Changes

CsvConfiguration.SanitizeForInjection -> CsvConfiguration.InjectionOptions
bool IWriterConfiguration.SanitizeForInjection -> InjectionOptions IWriterConfiguration.InjectionOptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant