зеркало из https://github.com/mozilla/git-bz-moz.git
Merge pull request #96 from jankeromnes/patch-1
Escape username when getting user details.
This commit is contained in:
Коммит
81425caf99
2
git-bz
2
git-bz
|
@ -693,7 +693,7 @@ class BugServer(object):
|
|||
|
||||
def get_user_detail(self, name):
|
||||
try:
|
||||
request = 'user?names=%s' % name
|
||||
request = 'user?names=%s' % urllib2.quote(name, safe='~()*!.\'')
|
||||
return self.auth.rest_request('GET', request)['users']
|
||||
except mercurial.error.Abort, e:
|
||||
print 'Error:', e
|
||||
|
|
Загрузка…
Ссылка в новой задаче