diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2014-01-07 15:01:12 -0500 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2014-01-07 15:01:12 -0500 |
commit | 52caaf2c6c8bb2ef7069006001f6548d7e77e90c (patch) | |
tree | 1df368abe60ced79c7c55b8c58c976fe05962c7a /hib-dlagent | |
parent | 3f1feb791c6b01516d992a39168e0efa929308c3 (diff) | |
download | hib-dlagent-52caaf2c6c8bb2ef7069006001f6548d7e77e90c.tar.gz hib-dlagent-52caaf2c6c8bb2ef7069006001f6548d7e77e90c.zip |
URL-encode username and password
This fixes a problem where credentials with characters such as [+%&]
would not work.
Diffstat (limited to 'hib-dlagent')
-rwxr-xr-x | hib-dlagent | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |