summaryrefslogtreecommitdiffstats
path: root/etc/inc/services.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-08-06 15:26:41 -0400
committerjim-p <jimp@pfsense.org>2014-08-06 15:27:49 -0400
commit071f6059996bdb9d9d0a68082a14dc71c0fbabe6 (patch)
treeb546166975d2ce581fcdd7d74b7a3ca1fee32e26 /etc/inc/services.inc
parent12c887006320a3d01a3f761eca2dfc8f64c41fa2 (diff)
downloadpfsense-071f6059996bdb9d9d0a68082a14dc71c0fbabe6.zip
pfsense-071f6059996bdb9d9d0a68082a14dc71c0fbabe6.tar.gz
Escape the individual dnsmasq advanced/custom options
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r--etc/inc/services.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 3b24e3a..239e9cb 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -1826,7 +1826,7 @@ function services_dnsmasq_configure() {
if ($config['dnsmasq']['custom_options'])
foreach (preg_split('/\s+/', $config['dnsmasq']['custom_options']) as $c) {
- $args .= " --$c";
+ $args .= " " . escapeshellarg("--{$c}");
$p = explode('=', $c);
if (array_key_exists($p[0], $standard_args))
unset($standard_args[$p[0]]);
OpenPOWER on IntegriCloud