From 1af96788f03d22ad90eee85ec79a1adbb9535ef9 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 14 Feb 2023 08:49:17 +0100 Subject: [PATCH] Even more tweaks to connection reply logging. --- activitypub.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/activitypub.c b/activitypub.c index 3965c9a..9624bdf 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1187,8 +1187,9 @@ void process_queue_item(xs_dict *q_item) payload = xs_str_cat(payload, "..."); } - payload = xs_replace_i(payload, "\n", "\\n"); - payload = xs_replace_i(payload, "\r", "\\r"); + /* strip ugly control characters */ + payload = xs_replace_i(payload, "\n", ""); + payload = xs_replace_i(payload, "\r", ""); if (*payload) payload = xs_str_wrap_i(" [", payload, "]");