[pve-devel] [PATCH manager 3/3] doc: spice-example-sh: support special characters in passwords

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Sep 25 10:56:03 CEST 2017


---
 spice-example-sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spice-example-sh b/spice-example-sh
index cc7c6b7f..6fe5c1f5 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"
 
-- 
2.11.0





More information about the pve-devel mailing list