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

exapt squote() to provide secure shell-quoting #496

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mlin
Copy link
Collaborator

@mlin mlin commented Apr 9, 2021

#493

Applies to version development only. The squote() function, in addition to prepending and appending single-quote marks, uses Python's shlex.quote() to furthermore escape any single-quote marks that may be embedded in the value. It accepts individual string values as well as arrays, with corresponding polymorphic return type.

@mlin mlin requested a review from kislyuk April 9, 2021 20:07
@coveralls
Copy link

Pull Request Test Coverage Report for Build 734220915

  • 20 of 21 (95.24%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 96.251%

Changes Missing Coverage Covered Lines Changed/Added Lines %
WDL/StdLib.py 20 21 95.24%
Totals Coverage Status
Change from base Build 734141035: 0.01%
Covered Lines: 6649
Relevant Lines: 6908

💛 - Coveralls

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.

3 participants