--- pyanaconda/ui/tui/spokes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/tui/spokes/user.py b/pyanaconda/ui/tui/spokes/user.py index 201f0e5..5500785 100644 --- a/pyanaconda/ui/tui/spokes/user.py +++ b/pyanaconda/ui/tui/spokes/user.py @@ -37,7 +37,7 @@ class UserSpoke(FirstbootSpokeMixIn, EditTUISpoke):
edit_fields = [ Entry("Create user", "_create", EditTUISpoke.CHECK, True), - Entry("Fullname", "gecos", re.compile("^[^:]*$"), lambda self,args: args._create), + Entry("Fullname", "gecos", re.compile("^[a-zA-Z0-9_.\s]*$"), lambda self,args: args._create), Entry("Username", "name", re.compile("^[a-zA-Z0-9_]+$"), lambda self,args: args._create), Entry("Use password", "_use_password", EditTUISpoke.CHECK, lambda self,args: args._create), Entry("Password", "password", EditTUISpoke.PASSWORD, lambda self,args: args._use_password and args._create),
On Wed, 2013-06-05 at 13:40 -0400, TiOluwa Olarewaju wrote:
pyanaconda/ui/tui/spokes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/tui/spokes/user.py b/pyanaconda/ui/tui/spokes/user.py index 201f0e5..5500785 100644 --- a/pyanaconda/ui/tui/spokes/user.py +++ b/pyanaconda/ui/tui/spokes/user.py @@ -37,7 +37,7 @@ class UserSpoke(FirstbootSpokeMixIn, EditTUISpoke):
edit_fields = [ Entry("Create user", "_create", EditTUISpoke.CHECK, True),
Entry("Fullname", "gecos", re.compile("^[^:]*$"), lambda self,args: args._create),
Entry("Fullname", "gecos", re.compile("^[a-zA-Z0-9_\.\s]*$"), lambda self,args: args._create),
This is not a good restriction for the GECOS field. It could be basically anything and even if it is a Full Name, there could be non-ASCII characters etc.
anaconda-patches@lists.fedorahosted.org