]> git.ipfire.org Git - thirdparty/curl.git/commit
CURLOPT_POSTFIELDS.3: fix incorrect C string escape in example
authorHaydar Alaidrus <haydar.alaidrus@gmail.com>
Sat, 23 Dec 2023 19:28:06 +0000 (02:28 +0700)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 23 Dec 2023 20:04:56 +0000 (15:04 -0500)
commit9faeebca883b3d8a57ca291e4f1b80382e236b5a
tree54b1aa883cd71f1ff8a3c1f6638f0d7348ef18ca
parent296cb805cfac11a09912b148b4f2d054af1e77d9
CURLOPT_POSTFIELDS.3: fix incorrect C string escape in example

- Escape inner quotes with two backslashes.

Two backslashes escapes the backslash for the man page and will show as
a single backslash.

eg: "{\\"name\\": \\"daniel\\"}" shows as "{\"name\": \"daniel\"}".

Closes https://github.com/curl/curl/pull/12588
docs/libcurl/opts/CURLOPT_POSTFIELDS.3