From 55643202489c7336f3bb8a5c8912a07ab2e7dad8 Mon Sep 17 00:00:00 2001 From: Julien Vaubourg Date: Tue, 14 Jun 2016 21:11:14 +0200 Subject: [PATCH] Use --data-urlencode for avoiding errors with % and so on --- conf/ynh-vpnclient-loadcubefile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/ynh-vpnclient-loadcubefile.sh b/conf/ynh-vpnclient-loadcubefile.sh index d88f0ed..7f10afe 100644 --- a/conf/ynh-vpnclient-loadcubefile.sh +++ b/conf/ynh-vpnclient-loadcubefile.sh @@ -86,7 +86,7 @@ ynh_service_enabled=$(ynh_setting vpnclient service_enabled) # SSO login -curl -kLe "https://${ynh_domain}/yunohost/sso/" -d "user=${ynh_user}" -d "password=${ynh_password}" "https://${ynh_domain}/yunohost/sso/" --resolve "${ynh_domain}:443:127.0.0.1" -c "${tmpdir}/cookies" 2> /dev/null | grep -q Logout +curl -kLe "https://${ynh_domain}/yunohost/sso/" --data-urlencode "user=${ynh_user}" --data-urlencode "password=${ynh_password}" "https://${ynh_domain}/yunohost/sso/" --resolve "${ynh_domain}:443:127.0.0.1" -c "${tmpdir}/cookies" 2> /dev/null | grep -q Logout if [ $? -ne 0 ]; then echo "[ERROR] SSO login failed" >&2