Mercurial > public > mercurial-scm > hg
diff mercurial/bundle2.py @ 21137:341a083603a5
bundle2: protect capabilities name and values with url quoting
This lift limitations of the text based encoding.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 17 Apr 2014 01:03:33 -0400 |
parents | b6fd496e5c72 |
children | f469879d27ec |
line wrap: on
line diff
--- a/mercurial/bundle2.py Thu Apr 17 11:44:49 2014 -0400 +++ b/mercurial/bundle2.py Thu Apr 17 01:03:33 2014 -0400 @@ -712,6 +712,8 @@ else: key, vals = line.split('=', 1) vals = vals.split(',') + key = urllib.unquote(key) + vals = [urllib.unquote(v) for v in vals] caps[key] = vals if op.reply is None: op.reply = bundle20(op.ui, caps)