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

fix: improve unsafe path handling #3927

Merged
merged 2 commits into from
Nov 6, 2024
Merged

Conversation

Arcitec
Copy link
Contributor

@Arcitec Arcitec commented Nov 1, 2024

Thank you so incredibly much for creating MediaMTX! It's practically the perfect media server! I'd like to give back by fixing a few bugs and issues here. :)

fix: improve unsafe path handling:

Paths containing spaces or dashes were being interpreted as separate options, since the path handling lacked double quotes.

This fixes all unsafe instances of "PWD" and "HOME", along with all other unsafe paths in the scripts.

readme: explicitly mount the configuration as read-only:

This clearly shows users that the MediaMTX container will not modify the configuration file.

Paths containing spaces or dashes were being interpreted as separate options, since the path handling lacked double quotes.

This fixes all unsafe instances of "PWD" and "HOME", along with all other unsafe paths in the scripts.
This clearly shows users that the MediaMTX container will not modify the configuration file.
@Arcitec
Copy link
Contributor Author

Arcitec commented Nov 1, 2024

Requesting review: @aler9 :)

@aler9
Copy link
Member

aler9 commented Nov 6, 2024

Hello, i tested launching scripts and Docker container from inside a folder with spaces, and i can confirm that current scripts and Docker command were unable to run properly and that this PR fixes the issue.
This has been merged, thanks!

@aler9 aler9 merged commit 426e6f8 into bluenviron:main Nov 6, 2024
6 checks passed
Copy link
Contributor

github-actions bot commented Dec 3, 2024

This issue is mentioned in release v1.10.0 🚀
Check out the entire changelog by clicking here

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.

2 participants