From 765bba6ca615e03088663fc2e57306a0b079b489 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 25 Sep 2017 10:56:03 +0200 Subject: [PATCH] doc: spice-example-sh: support special characters in passwords --- spice-example-sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spice-example-sh b/spice-example-sh index cc7c6b7f5..6fe5c1f59 100755 --- a/spice-example-sh +++ b/spice-example-sh @@ -59,7 +59,7 @@ fi NODE="${NODE%%\.*}" -DATA="$(curl -f -s -S -k -d "username=$USERNAME&password=$PASSWORD" "https://$PROXY:8006/api2/json/access/ticket")" +DATA="$(curl -f -s -S -k --data-urlencode "username=$USERNAME" --data-urlencode "password=$PASSWORD" "https://$PROXY:8006/api2/json/access/ticket")" echo "AUTH OK"