summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Becker <razzfazz@gmail.com>2013-07-07 15:28:35 -0700
committerDaniel Becker <razzfazz@gmail.com>2013-07-10 19:01:36 -0700
commitc3101e14c0389ff7b78a5fbc2cb55815f8f8b8f5 (patch)
tree1c9a0351f3a05a3a906d0fa206ec2ca6d03a34cb
parent93749c103f879631b2a5c97b572be927ef479b85 (diff)
downloadpfsense-c3101e14c0389ff7b78a5fbc2cb55815f8f8b8f5.zip
pfsense-c3101e14c0389ff7b78a5fbc2cb55815f8f8b8f5.tar.gz
Change separator as per JimP's request.
-rw-r--r--etc/inc/dyndns.class6
-rwxr-xr-xusr/local/www/services_dyndns.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index 8d3c9e8..e1f7b03 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -1026,7 +1026,7 @@
$currentTime = time();
notify_all_remote(sprintf(gettext("DynDNS updated IPv6 Address on %s (%s) to %s"), convert_real_interface_to_friendly_descr($this->_if), $this->_if, $wan_ip));
log_error("phpDynDNS: updating cache file {$this->_cacheFile_v6}: {$wan_ip}");
- @file_put_contents($this->_cacheFile_v6, "{$wan_ip}@{$currentTime}");
+ @file_put_contents($this->_cacheFile_v6, "{$wan_ip}|{$currentTime}");
} else
@unlink($this->_cacheFile_v6);
conf_mount_ro();
@@ -1104,14 +1104,14 @@
if ($this->_useIPv6 == true) {
if (file_exists($this->_cacheFile_v6)) {
$contents = file_get_contents($this->_cacheFile_v6);
- list($cacheIP,$cacheTime) = explode('@', $contents);
+ list($cacheIP,$cacheTime) = explode('|', $contents);
$this->_debug($cacheIP.'/'.$cacheTime);
$initial = false;
$log_error .= "Cached IPv6: {$cacheIP} ";
} else {
conf_mount_rw();
$cacheIP = '::';
- @file_put_contents($this->_cacheFile, "::@{$currentTime}");
+ @file_put_contents($this->_cacheFile, "::|{$currentTime}");
conf_mount_ro();
$cacheTime = $currentTime;
$initial = true;
diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php
index 0cb7419..6705406 100755
--- a/usr/local/www/services_dyndns.php
+++ b/usr/local/www/services_dyndns.php
@@ -152,7 +152,7 @@ include("head.inc");
echo "</font>";
} else if (file_exists($filename_v6)) {
$ipv6addr = get_interface_ipv6($dyndns['interface']);
- $cached_ipv6_s = explode("@", file_get_contents($filename_v6));
+ $cached_ipv6_s = explode("|", file_get_contents($filename_v6));
$cached_ipv6 = $cached_ipv6_s[0];
if ($ipv6addr <> $cached_ipv6)
echo "<font color='red'>";
OpenPOWER on IntegriCloud