This commit is contained in:
Jakobus Schürz 2019-07-31 17:07:50 +02:00
parent 078686cd17
commit d1e27e536e
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ class App(object):
self.handle_args(parser, cfg, options, args) self.handle_args(parser, cfg, options, args)
def setup_basic_logging(self): def setup_basic_logging(self):
logging.basicConfig(filename='gitosis.log', level="DEBUG") logging.basicConfig(filename='gitosis.log', level=10)
def create_parser(self): def create_parser(self):
parser = optparse.OptionParser() parser = optparse.OptionParser()

View file

@ -36,7 +36,7 @@ def ssh_extract_user(pubkey):
if not re.search(r"\s", pubkey): if not re.search(r"\s", pubkey):
_, user = pubkey.rsplit(None, 1) _, user = pubkey.rsplit(None, 1)
else: else:
user = pubkey user = pubkey.strip()
if ssh.isSafeUsername(user): if ssh.isSafeUsername(user):
return user return user
else: else: