Skip to content
Snippets Groups Projects
Commit eed0a6a0 authored by Matt Mackall's avatar Matt Mackall
Browse files

ui: disallow newlines in usernames (issue1034)

parent 6aa4a3fa
No related branches found
No related tags found
No related merge requests found
......@@ -351,6 +351,8 @@
pass
if not user:
raise util.Abort(_("Please specify a username."))
if "\n" in user:
raise util.Abort(_("username %s contains a newline\n") % `user`)
return user
def shortuser(self, user):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment