forked from voxpupuli/puppet-collectd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Escape json posts in curl_json plugin
*If* in the 'post' parameter we've been given a valid json string, it definately won't work unless we do some escaping of double quotes. If any strings in the JSON also contain (correctly escaped) double quotes, even more backslashes are needed. eg. The following JSON ``` {"param1":"something with a double quote \" in it"} ``` Would end up in the config file as ``` Post "{\"param1\":\"something with a double quote \\\" in it\"}" ```
- Loading branch information
1 parent
72f796f
commit d2b03bc
Showing
3 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters