From 52caaf2c6c8bb2ef7069006001f6548d7e77e90c Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Tue, 7 Jan 2014 15:01:12 -0500 Subject: URL-encode username and password This fixes a problem where credentials with characters such as [+%&] would not work. --- hib-dlagent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hib-dlagent b/hib-dlagent index 2d4b6bd..0d98b0f 100755 --- a/hib-dlagent +++ b/hib-dlagent @@ -16,7 +16,7 @@ STORAGE= login() { curl -s --cookie-jar "$COOKIE_JAR" \ - --data "username=$USERNAME" --data "password=$PASSWORD" "$LOGIN_PAGE" + --data-urlencode "username=$USERNAME" --data-urlencode "password=$PASSWORD" "$LOGIN_PAGE" } discover_url() { -- cgit v1.2.3-54-g00ecf