summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-20 20:42:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-20 20:42:37 +0000
commit0886e3f541d1f8e020b44bdde15d50cc056b79bf (patch)
treeaa819f452be01860d3e7e70a6788041c385a0cb8 /etc/inc
parent5b8c24b58bcbcd028e95c362e9b7c71195c10e47 (diff)
downloadpfsense-0886e3f541d1f8e020b44bdde15d50cc056b79bf.zip
pfsense-0886e3f541d1f8e020b44bdde15d50cc056b79bf.tar.gz
Correctly escape args.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc4
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);
}
OpenPOWER on IntegriCloud