Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
21136:b6fd496e5c72 | 21137:341a083603a5 |
---|---|
710 if '=' not in line: | 710 if '=' not in line: |
711 key, vals = line, () | 711 key, vals = line, () |
712 else: | 712 else: |
713 key, vals = line.split('=', 1) | 713 key, vals = line.split('=', 1) |
714 vals = vals.split(',') | 714 vals = vals.split(',') |
715 key = urllib.unquote(key) | |
716 vals = [urllib.unquote(v) for v in vals] | |
715 caps[key] = vals | 717 caps[key] = vals |
716 if op.reply is None: | 718 if op.reply is None: |
717 op.reply = bundle20(op.ui, caps) | 719 op.reply = bundle20(op.ui, caps) |
718 | 720 |