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

Escape mount sources and targets #3828

Open
wants to merge 2 commits into from
Open

Conversation

Sploder12
Copy link
Contributor

Fixes #3759

Previously, mount targets and sources were not escaped. This caused strange targets and mounts like " & mkdir hello & " to be able to execute commands in the instance. Now they are properly escaped so strangely named directories like " & mkdir hello & " will work as source or target.

MULTI-1675

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.94%. Comparing base (02fde37) to head (0ec5353).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3828      +/-   ##
==========================================
- Coverage   88.94%   88.94%   -0.01%     
==========================================
  Files         256      256              
  Lines       14584    14580       -4     
==========================================
- Hits        12972    12968       -4     
  Misses       1612     1612              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@andrei-toterman andrei-toterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well that was a horrible bug. 👏👏👏 for @Sploder12!

@sharder996 sharder996 added this pull request to the merge queue Dec 17, 2024
Any commits made after this event will not be merged.
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Dec 18, 2024
@sharder996 sharder996 added this pull request to the merge queue Dec 18, 2024
Any commits made after this event will not be merged.
github-merge-queue bot pushed a commit that referenced this pull request Dec 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 18, 2024
@sharder996 sharder996 added this pull request to the merge queue Dec 18, 2024
Any commits made after this event will not be merged.
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.

Mount targets are not validated
3 participants