From 12786e0818d83ec293fb210f9fcf6488b44a1ef9 Mon Sep 17 00:00:00 2001 From: Pascal Obry Date: Sun, 3 May 2015 21:08:40 +0200 Subject: [PATCH] Properly encode the user login. --- hubic_token | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hubic_token b/hubic_token index 88d567a..2d50a2c 100755 --- a/hubic_token +++ b/hubic_token @@ -496,7 +496,7 @@ out="$( stty echo 2>/dev/null fi printf '\n' >&2 - POST="$( printf '%s' "${scope}" | sed 's|,|\&|g;s|\.|=|g' )&oauth=${oauth}&action=accepted&login=${user_login}&user_pwd=$(urlenc "${user_pwd}")" + POST="$( printf '%s' "${scope}" | sed 's|,|\&|g;s|\.|=|g' )&oauth=${oauth}&action=accepted&login=$(urlenc "${user_login}")&user_pwd=$(urlenc "${user_pwd}")" ccurl "${URL_AUTH}/auth/" "${CURL_DATA}" "${POST}"