Skip to content

Backport: Make sure control chars from HTTP header don't end up in …#2335

Merged
drwetter merged 1 commit into3.0from
sanitize_fileout_3.0
Mar 12, 2023
Merged

Backport: Make sure control chars from HTTP header don't end up in …#2335
drwetter merged 1 commit into3.0from
sanitize_fileout_3.0

Conversation

@drwetter
Copy link
Copy Markdown
Collaborator

…html,csv,json

This is for 3.0. For 3.1dev, see #2332 .

This PR addresses the bug #2330 by implementing a function which removes control characters from the file output format html,csv,json in the output. In every instance called there's a check before whether the string contains control chars, hoping it'll save a few milli seconds.

A tr function is used, omitting LF.
It doesn't filter the terminal output and the log file output, yet. It provides a function though which is not being called.

…html,csv,json

This is for 3.0. For 3.1dev, see #2332 .

This PR addresses the bug #2330 by implementing a function which removes control characters from the file output format html,csv,json in the output.
In every instance called there's a check before whether the string contains control chars, hoping it'll save a few milli seconds.

A tr function is used, omitting LF.
It doesn't filter the terminal output and the log file output, yet. It provides a function though which is not being called.
@drwetter drwetter changed the title Backporting Make sure control chars from HTTP header don't end up in … Backport: Make sure control chars from HTTP header don't end up in … Mar 12, 2023
@drwetter drwetter merged commit e9c0beb into 3.0 Mar 12, 2023
@drwetter drwetter deleted the sanitize_fileout_3.0 branch March 12, 2023 17:19
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

Successfully merging this pull request may close these issues.

1 participant