diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-08 12:27:26 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-08 12:27:26 -0300 |
commit | b7e9afc06e06facfff4556f6b1592f8a33a59cbf (patch) | |
tree | ba752a0117dcb08a383d3d61f93482e3087346f0 /etc/inc | |
parent | dfa9759ae636b82620dca49bb6cc52ff9008ed99 (diff) | |
download | pfsense-b7e9afc06e06facfff4556f6b1592f8a33a59cbf.zip pfsense-b7e9afc06e06facfff4556f6b1592f8a33a59cbf.tar.gz |
Escape entire command to avoid breaking parameters
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 9195076..4990699 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -99,7 +99,7 @@ function pkg_call($params) { } // XXX: Use proper call with fifo to collect statistics - $_gc = exec("env ASSUME_ALWAYS_YES=true /usr/sbin/pkg " . escapeshellarg($params), $output, $rc); + $_gc = exec(escapeshellcmd("env ASSUME_ALWAYS_YES=true /usr/sbin/pkg {$params}"), $output, $rc); return ($rc == 0); } |