# HG changeset patch # User Henrik Stuart # Date 2009-07-02 17:53:20 # Node ID 5ed463d0ebdb3c1e8104720177129fbadb84d2ae # Parent b81baf9e4dd6fe5e475fb431977e838761632ef2 acl: read correct index into url for username (issue298) The index was inadvertedly off-by-one causing the username to be the remote host rather than the remote user when hosted in a http(s) session. diff --git a/hgext/acl.py b/hgext/acl.py --- a/hgext/acl.py +++ b/hgext/acl.py @@ -84,7 +84,7 @@ def hook(ui, repo, hooktype, node=None, if source == 'serve' and 'url' in kwargs: url = kwargs['url'].split(':') if url[0] == 'remote' and url[1].startswith('http'): - user = urllib.unquote(url[2]) + user = urllib.unquote(url[3]) if user is None: user = getpass.getuser()