diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-20 20:28:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-20 20:28:40 +0000 |
commit | 5b8c24b58bcbcd028e95c362e9b7c71195c10e47 (patch) | |
tree | d0585544c0af8e28e03b38563283eafaf799da70 /etc/inc | |
parent | 5456326f854533d70c9f0d9ccd5453f00f8d2465 (diff) | |
download | pfsense-5b8c24b58bcbcd028e95c362e9b7c71195c10e47.zip pfsense-5b8c24b58bcbcd028e95c362e9b7c71195c10e47.tar.gz |
Escaqpe shell arguments for Full Name when adding the user to FreeBSD.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index e961b60..053eda8 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -2620,8 +2620,8 @@ function sync_webgui_passwords() { fwrite($fd, $user['password']); pclose($fd); } else { - log_error("Running: /usr/sbin/pw useradd -u {$user['uid']} -n {$user['name']} -c '{$user['fullname']}' -g {$user['groupname']} -G {$group} -H 0"); - $fd = popen("/usr/sbin/pw useradd -u {$user['uid']} -n {$user['name']} -c '{$user['fullname']}' -g {$user['groupname']} -G {$group} -H 0", "w"); + log_error("Running: /usr/sbin/pw useradd -u {$user['uid']} -n {$user['name']} -c '" . escape_shell_args($user['fullname']) . " -g {$user['groupname']} -G {$group} -H 0"); + $fd = popen("/usr/sbin/pw useradd -u {$user['uid']} -n {$user['name']} -c " . escape_shell_args($user['fullname']) . " -g {$user['groupname']} -G {$group} -H 0", "w"); fwrite($fd, $user['password']); pclose($fd); } |