Skip to content

Commit

Permalink
util.py: fix a typo in sanitize_opts_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyw committed Mar 21, 2024
1 parent b3503d4 commit 87d9761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/common/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def sanitize_opts_arg(parser, args, arg_name):

# split, quote, and rejoin the options to avoid shell injection
try:
split_opts = shlex.split(args.snyk_code_test_opts)
split_opts = shlex.split(opts_str)

# starting with Python 3.8, one can use shlex.join(split_opts)
return ' '.join(shlex.quote(arg) for arg in split_opts)
Expand Down

0 comments on commit 87d9761

Please sign in to comment.