aboutsummaryrefslogtreecommitdiff
path: root/parser_test.lua
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-08-06 09:08:28 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2024-08-07 18:24:02 +0200
commit317ca038225c619dbdf53a499794219ea57d317f (patch)
treeea5f505fe1e433980dbee27fc53d4601e1159a33 /parser_test.lua
parent319a6b322ea34add387bd356d3d3fb9c6fd3b1ff (diff)
downloadvis-lspc-317ca038225c619dbdf53a499794219ea57d317f.tar.gz
vis-lspc-317ca038225c619dbdf53a499794219ea57d317f.zip
improve printf usage
Use %s and '' instead of "" to prevent the shell from interpreting the string to print. Escape all occurenses of ' in the string with '"'"' like python's shlex.quote. This prevents shell injection attacks by files with malicious names.
Diffstat (limited to 'parser_test.lua')
0 files changed, 0 insertions, 0 deletions