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

Trim values read from mosquitto.conf #2985

Open
pskowronek opened this issue Jan 28, 2024 · 0 comments
Open

Trim values read from mosquitto.conf #2985

pskowronek opened this issue Jan 28, 2024 · 0 comments

Comments

@pskowronek
Copy link

Trim values in mosquitto.conf?

For example, when copy-pasting configuration, some trailing whitespaces were added, including log path etc.
When I started mosquitto I found that mosquitto.log was created but it had whitespaces in the name. I went back to configuration to remove those whitespaces and restart mosquito. Then I had to remove old log: rm 'mosquitto.log '

Consider to trim values read from mosquitto.conf? On the other hand, I know that whitespaces can be probably accepted in secrets, however, in such a case such secrets or values should be either wrapped with quotes or escaped?

Mosquitto version:
eclipse-mosquitto latest 0c7998050574 8 weeks ago 14.5MB

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