From 61b22d1e091d95aeeeb260f902f775b10656e3a2 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Mon, 20 Nov 2023 00:13:32 -0600 Subject: [PATCH] Escape quotation-marks in post descriptions --- sfeed_mastodon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sfeed_mastodon b/sfeed_mastodon index ab1b84a..2c7405a 100755 --- a/sfeed_mastodon +++ b/sfeed_mastodon @@ -79,7 +79,8 @@ sfeed_post_text() { | sed "s|{{url}}|$url|g" \ | sed "s|{{desc}}|$desc|g" \ | sed "s|{{desc_short}}|$desc_snip|g" \ - | sed 's%\\n%%' \ + | sed 's|\\n||g' \ + | sed 's|"|\\"|g' \ | tr -d ' \n' }