miniwdl icon indicating copy to clipboard operation
miniwdl copied to clipboard

exapt squote() to provide secure shell-quoting

Open mlin opened this issue 3 years ago • 1 comments

#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 avatar Apr 09 '21 20:04 mlin

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%
<!-- Total: 20 21
Totals Coverage Status
Change from base Build 734141035: 0.01%
Covered Lines: 6649
Relevant Lines: 6908

💛 - Coveralls

coveralls avatar Apr 09 '21 20:04 coveralls