Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AdityaBavadekar
Copy link
Contributor

Fixes #513

Summary:

  • Replaced unsafe string concatenation with shlex.join() for POSIX systems, mslex.join() for Windows systems.
  • Added utility function safe_join for platform-dependent escaping.
  • Added mslex dependency for Windows environments.

References:

@jamesmurdza
Copy link
Contributor

@AdityaBavadekar I tested this and it works. Can you please rebase this and generate uv.lock again? The uv.lock is the only conflict.

- Replaced unsafe string concatenation with `shlex.join()` for POSIX systems, `mslex.join()` for Windows systems.
- Add utility function `safe_join`.
- Modified `pyproject.toml` to include `mslex` dependency for Windows environments.
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
libs/python/computer/computer/utils.py 57.14% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@jamesmurdza jamesmurdza merged commit c2c2b37 into trycua:main Oct 30, 2025
10 of 12 checks passed
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.

Sanitize input to subprocess.run(..., shell=True)

3 participants