Permalink
Browse files

replace + with %2B to bypass encoding

  • Loading branch information...
serghey-rodin committed Nov 1, 2013
1 parent 3ff8423 commit d9dde8517b8056a54f8cfcb2f61a11a2fcf8fba4
Showing with 1 addition and 0 deletions.
  1. +1 −0 func/remote.sh
View
@@ -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

0 comments on commit d9dde85

Please sign in to comment.