Skip to content

Commit

Permalink
replace + with %2B to bypass encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
serghey-rodin committed Nov 1, 2013
1 parent 3ff8423 commit d9dde85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions func/remote.sh
Expand Up @@ -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
Expand Down

0 comments on commit d9dde85

Please sign in to comment.