Skip to content

strip line break characters from commit hash #9880

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

Closed
wants to merge 4 commits into from
Closed

strip line break characters from commit hash #9880

wants to merge 4 commits into from

Conversation

amadeo-alex
Copy link
Contributor

@amadeo-alex amadeo-alex commented Nov 28, 2021

Hello,

This simple change removes \r & \n characters from the commit hash. I don't know how they ended there but this makes sure that even if they do, they are removed before logging.
Before the change:
obraz
After the change:
obraz

This would cause some syslog servers freak out and treat all logs as one message.
Possible relation to #9872

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@amadeo-alex amadeo-alex changed the base branch from master to dev November 28, 2021 21:43
@amadeo-alex amadeo-alex deleted the syslog_line_break_fix branch November 28, 2021 21:45
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.

3 participants