diff options
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r-- | etc/inc/auth.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index a694efb..5464ecc 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -421,10 +421,11 @@ function local_user_set(& $user) { $user_op = "usermod"; } + $comment = str_replace(array(":", "!", "@"), " ", $user['descr']); /* add or mod pw db */ $cmd = "/usr/sbin/pw {$user_op} -q -u {$user_uid} -n {$user_name}". " -g {$user_group} -s {$user_shell} -d {$user_home}". - " -c ".escapeshellarg($user['descr'])." -H 0 2>&1"; + " -c ".escapeshellarg($comment)." -H 0 2>&1"; if($debug) log_error(sprintf(gettext("Running: %s"), $cmd)); |