summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-08 12:27:26 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-08 12:27:26 -0300
commitb7e9afc06e06facfff4556f6b1592f8a33a59cbf (patch)
treeba752a0117dcb08a383d3d61f93482e3087346f0 /etc/inc/pkg-utils.inc
parentdfa9759ae636b82620dca49bb6cc52ff9008ed99 (diff)
downloadpfsense-b7e9afc06e06facfff4556f6b1592f8a33a59cbf.zip
pfsense-b7e9afc06e06facfff4556f6b1592f8a33a59cbf.tar.gz
Escape entire command to avoid breaking parameters
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc2
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);
}
OpenPOWER on IntegriCloud