Skip to content

Commit d9dde85

Browse files
committed
replace + with %2B to bypass encoding
1 parent 3ff8423 commit d9dde85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

func/remote.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ send_api_cmd() {
99
auth="user=$USER&password=$PASSWORD&returncode=yes"
1010
cmd="cmd=$1"
1111
args="arg1=$2&arg2=$3&arg3=$4&arg4=$5&arg5=$6&arg6=$7&arg7=$8&arg8=$9"
12+
args=$(echo "$args" |sed -e "s/+/%2B/g")
1213
answer=$(curl -s -k --data "$auth&$cmd&$args" https://$HOST:$PORT/api/)
1314
if [ "$answer" != '0' ]; then
1415
return 1

0 commit comments

Comments
 (0)