From 5b8c24b58bcbcd028e95c362e9b7c71195c10e47 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 20 Feb 2008 20:28:40 +0000 Subject: Escaqpe shell arguments for Full Name when adding the user to FreeBSD. --- etc/inc/pfsense-utils.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc') 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); } -- cgit v1.1