summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-17 19:36:32 +0000
committerErmal <eri@pfsense.org>2010-11-17 19:36:32 +0000
commit1ae5c631e8ec83ed5acdd60419dc436c893fe6ef (patch)
treeae39736516aa3724c72691a6e117181ac5e48b91
parent53d41b688552cddc4941031635e31f528468f4c1 (diff)
downloadpfsense-1ae5c631e8ec83ed5acdd60419dc436c893fe6ef.zip
pfsense-1ae5c631e8ec83ed5acdd60419dc436c893fe6ef.tar.gz
Resolves #1018. Provide a more unique host name for the file.
-rw-r--r--etc/inc/dyndns.class6
-rw-r--r--usr/local/www/services_dyndns_edit.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index 247fa68..05ec5c7 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -92,8 +92,8 @@
global $config, $g;
- $this->_cacheFile = "{$g['conf_path']}/dyndns_{$dnsIf}{$dnsService}.cache";
- $this->_debugFile = "{$g['varetc_path']}/dyndns_{$dnsIf}{$dnsService}.debug";
+ $this->_cacheFile = "{$g['conf_path']}/dyndns_{$dnsIf}{$dnsService}" . escapeshellarg($dnsHost) . ".cache";
+ $this->_debugFile = "{$g['varetc_path']}/dyndns_{$dnsIf}{$dnsService}" . escapeshellarg($dnsHost) . ".debug";
log_error("DynDns: updatedns() starting");
@@ -921,4 +921,4 @@
}
-?> \ No newline at end of file
+?>
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index 7d3072c..22435ff 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -117,7 +117,7 @@ if ($_POST) {
conf_mount_rw();
- mwexec("/bin/rm {$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}.cache");
+ mwexec("/bin/rm {$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}" . escapeshellarg($dyndns['host']) . ".cache");
$retval = services_dyndns_configure_client($dyndns);
OpenPOWER on IntegriCloud