Project

General

Profile

« Previous | Next » 

Revision 99438649

Added by Andrew DeFilippis about 12 years ago

Update dyndns.class

To remove a curl_setopt line that is unused for "dnsomatic", and to allow for all characters to be used in the username and password fields.

View differences:

etc/inc/dyndns.class
438 438
						log_error("DNS-O-Matic: DNS update() starting.");
439 439
					if (isset($this->_dnsWildcard) && $this->_dnsWildcard != "OFF") $this->_dnsWildcard = "ON";
440 440
					curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
441
					curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser.':'.$this->_dnsPass);
442
					$server = "https://" . $this->_dnsUser . ":" . $this->_dnsPass . "@updates.dnsomatic.com/nic/update?hostname=";
441
					/*
442
					Reference: https://www.dnsomatic.com/wiki/api
443
						DNS-O-Matic usernames are 3-25 characters.
444
						DNS-O-Matic passwords are 6-20 characters.
445
						All ASCII letters and numbers accepted.
446
						Dots, dashes, and underscores allowed, but not at the beginning or end of the string.
447
					Required: "rawurlencode" http://www.php.net/manual/en/function.rawurlencode.php
448
						Encodes the given string according to RFC 3986.
449
					*/
450
					$server = "https://" . rawurlencode($this->_dnsUser) . ":" . rawurlencode($this->_dnsPass) . "@updates.dnsomatic.com/nic/update?hostname=";
443 451
					if($this->_dnsServer)
444 452
						$server = $this->_dnsServer;
445 453
					if($this->_dnsPort)

Also available in: Unified diff