summaryrefslogtreecommitdiffstats
path: root/doc/functions.xml
diff options
context:
space:
mode:
authorKevin Cox <kevincox@kevincox.ca>2017-01-27 22:01:21 +0000
committerGraham Christensen <graham@grahamc.com>2017-02-20 22:20:13 -0500
commitda33c8a19d97711d213789cf49c8b7c483beb18f (patch)
tree25061debad511d3fa422eb640eccf358e6217581 /doc/functions.xml
parent85fe839caf6a162d3d2215f372294eafb29d9f31 (diff)
systemd: Properly escape environment options.
Using toJSON on a string value works because the allowed JSON escape sequences is almost a subset of the systemd allowed escape sequences. The only exception is `\/` which JSON allows but systemd doesn't. Luckily this sequence isn't required and toJSON don't produce it making the result valid for systemd consumption. Examples of things that this fixes are environment variables with double quotes or newlines.
Diffstat (limited to 'doc/functions.xml')
0 files changed, 0 insertions, 0 deletions