summaryrefslogtreecommitdiff
path: root/hib-dlagent
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2014-01-07 15:01:12 -0500
committerDevin J. Pohly <djpohly@gmail.com>2014-01-07 15:01:12 -0500
commit52caaf2c6c8bb2ef7069006001f6548d7e77e90c (patch)
tree1df368abe60ced79c7c55b8c58c976fe05962c7a /hib-dlagent
parent3f1feb791c6b01516d992a39168e0efa929308c3 (diff)
downloadhib-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-xhib-dlagent2
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() {