commit b90d85ca8dc669b77f052406939a26f9d722d176 Author: David Fifield david@bamsoftware.com Date: Tue Dec 25 10:42:38 2012 -0800
Decode our cookie values.
The encoding is not part of the syntax of cookies, but it makes safe characters like whitespace. --- proxy/flashproxy.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js index caa3a31..d6bcdab 100644 --- a/proxy/flashproxy.js +++ b/proxy/flashproxy.js @@ -118,8 +118,8 @@ function parse_cookie_string(cookies) { if (j === -1) { return null; } - name = string.substr(0, j).trim(); - value = string.substr(j + 1).trim(); + name = decodeURIComponent(string.substr(0, j).trim()); + value = decodeURIComponent(string.substr(j + 1).trim());
if (!(name in result)) result[name] = value;
tor-commits@lists.torproject.org