Skip to content

Commit 3631273

Browse files
fix: add safe_name validation for sourcedir argument
1 parent 3a2970c commit 3631273

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mkconcore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def _resolve_concore_path():
157157
sourcedir = sys.argv[2]
158158
outdir = sys.argv[3]
159159

160-
# Validate outdir argument (allow full paths)
160+
# Validate arguments (allow full paths)
161+
safe_name(sourcedir, "Source directory argument", allow_path=True)
161162
safe_name(outdir, "Output directory argument", allow_path=True)
162163

163164
if not os.path.isdir(sourcedir):

0 commit comments

Comments
 (0)