summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-08-07 18:15:31 -0400
committerjim-p <jimp@pfsense.org>2012-08-07 18:15:31 -0400
commit4178d033a22655b8494f013cf2d2e6566deef692 (patch)
tree4e5695c3c1bd2e2483d27bcd7b05b1a69819ff75 /etc/inc
parent9f310a6384bf636e75e8eeae658e321ef4829bba (diff)
downloadpfsense-4178d033a22655b8494f013cf2d2e6566deef692.zip
pfsense-4178d033a22655b8494f013cf2d2e6566deef692.tar.gz
Make sure we don't have any extra whitespace here.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/dyndns.class5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index 936ebac..de1ac54 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -420,12 +420,13 @@
$needsIP = FALSE;
log_error("Namecheap: DNS update() starting.");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
- $dparts = explode(".", $this->_dnsHost);
+ $dparts = explode(".", trim($this->_dnsHost));
$domain_part_count = ($dparts[count($dparts)-1] == "uk") ? 3 : 2;
$domain_offset = count($dparts) - $domain_part_count;
$hostname = implode(".", array_slice($dparts, 0, $domain_offset));
$domain = implode(".", array_slice($dparts, $domain_offset));
- $server = "https://dynamicdns.park-your-domain.com/update?host={$hostname}&domain={$domain}&password={$this->_dnsPass}&ip={$this->_dnsIP}";
+ $dnspass = trim($this->_dnsPass);
+ $server = "https://dynamicdns.park-your-domain.com/update?host={$hostname}&domain={$domain}&password={$dnspass}&ip={$this->_dnsIP}";
curl_setopt($ch, CURLOPT_URL, $server);
break;
case 'he-net':
OpenPOWER on IntegriCloud