Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information