From 16e3ac92d2421a3167260504805a518b1053fd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Fri, 14 Oct 2022 12:17:44 +0200 Subject: [PATCH] webhook escape --- libexec/kiwi-backup/run_command | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/kiwi-backup/run_command b/libexec/kiwi-backup/run_command index 8d974de..ec65ec2 100755 --- a/libexec/kiwi-backup/run_command +++ b/libexec/kiwi-backup/run_command @@ -26,8 +26,8 @@ if [ -n "${WEBHOOK_URL}" ]; then wget_args="--no-check-certificate" fi - WEBHOOK_URL="$(echo "${WEBHOOK_URL}" | sed "s,%%MSG%%,running task ${*},g" )" - wget -O /dev/null ${wget_args} "${WEBHOOK_URL}" + WEBHOOK_URL="$(echo "${WEBHOOK_URL}" | sed "s,%%MSG%%,running%20task%20${*},g" )" + wget -O /dev/null ${wget_args} "${WEBHOOK_URL}" 1>/dev/null 2>/dev/null fi # hand over