mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/dyndns: always encode _dnsUser for #840
This commit is contained in:
@@ -521,7 +521,7 @@ class updatedns
|
||||
curl_setopt($ch, CURLOPT_URL, 'https://freedns.afraid.org/dynamic/update.php?' . $this->_dnsPass);
|
||||
break;
|
||||
case 'dnsexit':
|
||||
curl_setopt($ch, CURLOPT_URL, 'https://www.dnsexit.com/RemoteUpdate.sv?login='.$this->_dnsUser. '&password='.$this->_dnsPass.'&host='.$this->_dnsHost.'&myip='.$this->_dnsIP);
|
||||
curl_setopt($ch, CURLOPT_URL, 'https://www.dnsexit.com/RemoteUpdate.sv?login='.urlencode($this->_dnsUser). '&password='.$this->_dnsPass.'&host='.$this->_dnsHost.'&myip='.$this->_dnsIP);
|
||||
break;
|
||||
case 'loopia':
|
||||
$this->_dnsWildcard = (isset($this->_dnsWildcard) && $this->_dnsWildcard == true) ? 'ON' : 'OFF';
|
||||
@@ -547,7 +547,7 @@ class updatedns
|
||||
break;
|
||||
|
||||
case 'staticcling':
|
||||
curl_setopt($ch, CURLOPT_URL, 'https://www.staticcling.org/update.html?login='.$this->_dnsUser.'&pass='.$this->_dnsPass);
|
||||
curl_setopt($ch, CURLOPT_URL, 'https://www.staticcling.org/update.html?login='.urlencode($this->_dnsUser).'&pass='.$this->_dnsPass);
|
||||
break;
|
||||
case 'dnsomatic':
|
||||
/* Example syntax
|
||||
@@ -757,7 +757,7 @@ class updatedns
|
||||
$server = "https://ssl.gratisdns.dk/ddns.phtml";
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||
list($hostname, $domain) = explode(".", $this->_dnsHost, 2);
|
||||
curl_setopt($ch, CURLOPT_URL, $server . '?u=' . $this->_dnsUser . '&p=' . $this->_dnsPass . '&h=' . $this->_dnsHost . '&d=' . $domain);
|
||||
curl_setopt($ch, CURLOPT_URL, $server . '?u=' . urlencode($this->_dnsUser) . '&p=' . $this->_dnsPass . '&h=' . $this->_dnsHost . '&d=' . $domain);
|
||||
break;
|
||||
case 'ovh-dynhost':
|
||||
if (isset($this->_dnsWildcard) && $this->_dnsWildcard != "OFF") {
|
||||
@@ -791,7 +791,7 @@ class updatedns
|
||||
case 'duckdns':
|
||||
$server = "https://www.duckdns.org/update";
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||
curl_setopt($ch, CURLOPT_URL, $server . '?domains=' . str_replace('.duckdns.org', '', $this->_dnsHost) . '&token=' . $this->_dnsUser);
|
||||
curl_setopt($ch, CURLOPT_URL, $server . '?domains=' . str_replace('.duckdns.org', '', $this->_dnsHost) . '&token=' . urlencode($this->_dnsUser));
|
||||
break;
|
||||
case 'googledomains':
|
||||
$server = "https://domains.google.com/nic/update";
|
||||
@@ -826,7 +826,7 @@ class updatedns
|
||||
case 'regfish':
|
||||
case 'regfish-v6':
|
||||
$family = $this->_useIPv6 ? 'ipv6' : 'ipv4';
|
||||
$server = "https://dyndns.regfish.de/?fqdn={$this->_dnsHost}&{$family}={$this->_dnsIP}&forcehost=1&token={$this->_dnsUser}";
|
||||
$server = "https://dyndns.regfish.de/?fqdn={$this->_dnsHost}&{$family}={$this->_dnsIP}&forcehost=1&token=" . urlencode($this->_dnsUser);
|
||||
curl_setopt($ch, CURLOPT_URL, $server);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user