mirror of
https://github.com/gadievron/raptor.git
synced 2026-04-25 05:56:00 +03:00
[GH-ISSUE #43] Fix shell metacharacter handling in wrapper script generation #12
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/raptor#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gadievron on GitHub (Dec 22, 2025).
Original GitHub issue: https://github.com/gadievron/raptor/issues/43
Problem
Paths with spaces, quotes, or special characters aren't properly escaped, causing wrapper scripts to fail. While RAPTOR is a local tool with user-provided input, proper escaping prevents frustration and potential security issues with paths like
/Users/dev/My Projects/app.Lines 452, 466, 472 in
packages/codeql/build_detector.pywriterepo_pathvalues directly into bash wrapper scripts without shell escaping.Example Issue
Impact
Fix
Use
shlex.quote()to properly escape paths:File:
packages/codeql/build_detector.py:452, 466, 472Type
Related
@gadievron commented on GitHub (Dec 22, 2025):
Fixed in PR #49