Project

General

Profile

Bug #11815 ยป 243.diff

Viktor Gurov, 05/06/2021 05:35 AM

View differences:

src/etc/inc/dyndns.class
566 566
				case 'noip':
567 567
				case 'noip-free':
568 568
					$needsIP = TRUE;
569
					curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser . ':' . $this->_dnsPass);
569
					curl_setopt($ch, CURLOPT_USERPWD, urlencode($this->_dnsUser) . ':' . urlencode($this->_dnsPass));
570 570
					$server = "https://dynupdate.no-ip.com/nic/update";
571 571
					$port = "";
572 572
					if ($this->_dnsServer) {
......
1773 1773
				case 'dhs':
1774 1774
					break;
1775 1775
				case 'noip':
1776
				case 'noip-v6':
1777 1776
				case 'noip-free':
1777
					if (preg_match('/good/i', $data)) {
1778
						$status = $status_intro . $success_str . gettext("IP Address Changed Successfully!");
1779
						$successful_update = true;
1780
					} else if (preg_match('/nochg/i', $data)) {
1781
						$status = $status_intro . $success_str . gettext("No Change In IP Address");
1782
						$successful_update = true;
1783
					} else if (preg_match('/nohost/i', $data)) {
1784
						$status = $status_intro . $error_str . gettext("Hostname supplied does not exist under specified account");
1785
					} else if (preg_match('/badauth/i', $data)) {
1786
						$status = $status_intro . $error_str . gettext("Invalid username password combination");
1787
					} else if (preg_match('/badagent/i', $data)) {
1788
						$status = $status_intro . $error_str . gettext("Client disabled");
1789
					} else if (preg_match('/\!donator/i', $data)) {
1790
						$status = $status_intro . $error_str . gettext("Feature is not available");
1791
					} else if (preg_match('/abuse/i', $data)) {
1792
						$status = $status_intro . $error_str . gettext("Username is blocked due to abuse");
1793
					} else if (preg_match('/911/i', $data)) {
1794
						$status = $status_intro . $error_str . gettext("Fatal error");
1795
					} else {
1796
						$status = $status_intro . "(" . gettext("Unknown Response") . ")";
1797
						log_error($status_intro . gettext("PAYLOAD:") . " {$data}");
1798
						$this->_debug($data);
1799
					}
1800
					break;
1801
				case 'noip-v6':
1778 1802
				case 'noip-free-v6':
1779 1803
					list($ip, $code) = explode(":", $data);
1780 1804
					switch ($code) {
    (1-1/1)