diff options
author | Brendan Taylor <whateley@gmail.com> | 2011-10-23 10:38:03 +0000 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-10-23 10:43:01 +0000 |
commit | 5de3f596a05c78672f4f1034db152443404bf1ef (patch) | |
tree | 94066b36b0759d2cee13eb55a18cede2e4938996 /examples | |
parent | 3dc59ed89c7376820e51a865e5b45e68166b65a0 (diff) |
sometimes load_cookies.sh didn't parse cookies properly
this was causing the updated EM to drop the connection.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/data/scripts/load_cookies.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/data/scripts/load_cookies.sh b/examples/data/scripts/load_cookies.sh index c7fcc58..380301e 100755 --- a/examples/data/scripts/load_cookies.sh +++ b/examples/data/scripts/load_cookies.sh @@ -13,9 +13,11 @@ BEGIN { scheme["FALSE"] = "http"; } $0 ~ /^#HttpOnly_/ { + gsub(/@/, "\\@") printf("add_cookie \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n", substr($1,length("#HttpOnly_"),length($1)), $3, $6, $7, scheme[$4], $5) } $0 !~ /^#/ { + gsub(/@/, "\\@") printf("add_cookie \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n", $1, $3, $6, $7, scheme[$4], $5) } ' "$cookie_file" |