Projet

Général

Profil

« Précédent | Suivant » 

Révision de29dadc

Ajouté par Renato Botelho il y a plus de 9 ans

Allow hostname to start with '@.' for namecheap. It fixes #3568

Voir les différences:

usr/local/www/services_dyndns_edit.php
108 108

  
109 109
	do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
110 110

  
111
	if (($_POST['host'] && !is_domain($_POST['host'])))
112
		$input_errors[] = gettext("The Hostname contains invalid characters.");
111
	if (isset($_POST['host'])) {
112
		/* Namecheap can have a @. in hostname */
113
		if ($pconfig['type'] == "namecheap" && substr($_POST['host'], 0, 2) == '@.')
114
			$host_to_check = substr($_POST['host'], 2);
115
		else
116
			$host_to_check = $_POST['host'];
117

  
118
		if (!is_domain($host_to_check))
119
			$input_errors[] = gettext("The Hostname contains invalid characters.");
120

  
121
		unset($host_to_check);
122
	}
113 123
	if (($_POST['mx'] && !is_domain($_POST['mx']))) 
114 124
		$input_errors[] = gettext("The MX contains invalid characters.");
115 125
	if ((in_array("username", $reqdfields) && $_POST['username'] && !is_dyndns_username($_POST['username'])) || ((in_array("username", $reqdfields)) && ($_POST['username'] == ""))) 

Formats disponibles : Unified diff