diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-20 20:42:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-20 20:42:37 +0000 |
commit | 0886e3f541d1f8e020b44bdde15d50cc056b79bf (patch) | |
tree | aa819f452be01860d3e7e70a6788041c385a0cb8 /etc | |
parent | 5b8c24b58bcbcd028e95c362e9b7c71195c10e47 (diff) | |
download | pfsense-0886e3f541d1f8e020b44bdde15d50cc056b79bf.zip pfsense-0886e3f541d1f8e020b44bdde15d50cc056b79bf.tar.gz |
Correctly escape args.
Diffstat (limited to 'etc')
-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 053eda8..0db625d 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 '" . 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"); + log_error("Running: /usr/sbin/pw useradd -u {$user['uid']} -n {$user['name']} -c '" . escapeshellarg($user['fullname']) . " -g {$user['groupname']} -G {$group} -H 0"); + $fd = popen("/usr/sbin/pw useradd -u {$user['uid']} -n {$user['name']} -c " . escapeshellarg($user['fullname']) . " -g {$user['groupname']} -G {$group} -H 0", "w"); fwrite($fd, $user['password']); pclose($fd); } |