make sure that options are quoted, as people can add a shell

script there with a comma that would produce invalid configuration
upon being wrote again
reviewable/pr18780/r1
Michael Scherer 11 years ago
parent 2ad3a46e13
commit d53abc2d5e

@ -256,7 +256,7 @@ def writekeys(module, filename, keys):
option_strings = []
for option_key in sorted(options.keys()):
if options[option_key]:
option_strings.append("%s=%s" % (option_key, options[option_key]))
option_strings.append("%s=\"%s\"" % (option_key, options[option_key]))
else:
option_strings.append("%s " % option_key)

Loading…
Cancel
Save