summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorSergio Carlos Morales Angeles <carloschilazo@gmail.com>2017-04-20 09:40:24 -0500
committerRenato Botelho <renato@netgate.com>2017-04-20 14:16:17 -0300
commit7f8e4d5f36a12406b114a0eb318a3bb5f45213fa (patch)
tree598aaf72e668d6b068ed1be81ca8cb2a6fe13daa /src/usr/local
parentc14573f74d845754aa48d1d5f011db06bf2191e5 (diff)
downloadpfsense-7f8e4d5f36a12406b114a0eb318a3bb5f45213fa.zip
pfsense-7f8e4d5f36a12406b114a0eb318a3bb5f45213fa.tar.gz
Escape IPv6 when passed to ndp delete command
(cherry picked from commit 1d92faa34f7c9aaa97b1983f273d2d73285befb5)
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/diag_ndp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_ndp.php b/src/usr/local/www/diag_ndp.php
index 496823b..39d7ba4 100644
--- a/src/usr/local/www/diag_ndp.php
+++ b/src/usr/local/www/diag_ndp.php
@@ -72,7 +72,7 @@ require_once("guiconfig.inc");
if (isset($_POST['deleteentry'])) {
$ip = $_POST['deleteentry'];
if (is_ipaddrv6($ip)) {
- $commandReturnValue = mwexec(NDP_BINARY_PATH . " -d " . $ip, true);
+ $commandReturnValue = mwexec(NDP_BINARY_PATH . " -d " . escapeshellarg($ip), true);
$deleteSucceededFlag = ($commandReturnValue == 0);
} else {
$deleteSucceededFlag = false;
OpenPOWER on IntegriCloud