From d9dde8517b8056a54f8cfcb2f61a11a2fcf8fba4 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Fri, 1 Nov 2013 23:19:29 +0200 Subject: [PATCH] replace + with %2B to bypass encoding --- func/remote.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/func/remote.sh b/func/remote.sh index e71cc361..8f386594 100644 --- a/func/remote.sh +++ b/func/remote.sh @@ -9,6 +9,7 @@ send_api_cmd() { auth="user=$USER&password=$PASSWORD&returncode=yes" cmd="cmd=$1" args="arg1=$2&arg2=$3&arg3=$4&arg4=$5&arg5=$6&arg6=$7&arg7=$8&arg8=$9" + args=$(echo "$args" |sed -e "s/+/%2B/g") answer=$(curl -s -k --data "$auth&$cmd&$args" https://$HOST:$PORT/api/) if [ "$answer" != '0' ]; then return 1