aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2016-04-29 23:22:28 +0200
committerAngelo Naselli <anaselli@linux.it>2016-04-29 23:23:25 +0200
commit7e3b48905ba456d46c64abe314fdc8393bf202e3 (patch)
treebfcb743192b8b8933e077e086f3884bb856b6273 /lib/ManaTools
parentc05a8b1faa5dbe824cad1d86c15da23e143e87c7 (diff)
downloadmanatools-7e3b48905ba456d46c64abe314fdc8393bf202e3.tar
manatools-7e3b48905ba456d46c64abe314fdc8393bf202e3.tar.gz
manatools-7e3b48905ba456d46c64abe314fdc8393bf202e3.tar.bz2
manatools-7e3b48905ba456d46c64abe314fdc8393bf202e3.tar.xz
manatools-7e3b48905ba456d46c64abe314fdc8393bf202e3.zip
Fixing issue 2 on github manauser edit with special chars in fullname
Diffstat (limited to 'lib/ManaTools')
-rw-r--r--lib/ManaTools/Module/Users.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ManaTools/Module/Users.pm b/lib/ManaTools/Module/Users.pm
index c73e2bd3..715765d3 100644
--- a/lib/ManaTools/Module/Users.pm
+++ b/lib/ManaTools/Module/Users.pm
@@ -1954,9 +1954,12 @@ sub _userEdit_Ok {
return 0;
}
+ my $fullname = $userData->{full_name};
+ utf8::decode($fullname);
+
my $userInfo = {
username => $userData->{username},
- fullname => $userData->{full_name},
+ fullname => $fullname,
homedir => $userData->{homedir},
shell => $userData->{shell},
members => $userData->{members},