chiark / gitweb /
common,tools: Always escape newlines when escaping data.
authorJustus Winter <justus@g10code.com>
Wed, 1 Mar 2017 16:47:47 +0000 (17:47 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
commitd42f05d1e180cc6cd24f9e186d8170723561c84b
tree30e0bae0a5b5d69274687cfe7fcf2c3d725c3622
parent2cfc85745d79b473f2be099c9a19220b36366738
common,tools: Always escape newlines when escaping data.

* common/stringhelp.c (do_percent_escape): Always escape newlines.
* tools/gpgconf-comp.c (gc_percent_escape): Likewise.
--
Newlines always pose a problem for a line-based communication format.

GnuPG-bug-id: 2387
Signed-off-by: Justus Winter <justus@g10code.com>
(cherry picked from commit e064c75b08a523f738108428fe0c417a46e66238)

Gbp-Pq: Name 0045-common-tools-Always-escape-newlines-when-escaping-da.patch
common/stringhelp.c
tools/gpgconf-comp.c