equal
deleted
inserted
replaced
66 $wildcard = true; |
66 $wildcard = true; |
67 } else { |
67 } else { |
68 $wildcard = false; |
68 $wildcard = false; |
69 } |
69 } |
70 |
70 |
|
71 if (preg_match('!@\.!i', $name)) |
|
72 { |
|
73 $name = str_replace('@.', '@', $name); |
|
74 } |
|
75 |
71 if ($name == "" || $name == "@") { |
76 if ($name == "" || $name == "@") { |
72 $name = $domain; |
77 $test_name = $domain; |
73 } else { |
78 } else { |
74 $name = $name . "." . $domain ; |
79 $test_name = $name . "." . $domain ; |
75 } |
80 } |
76 |
81 |
77 if (preg_match('!@\.!i', $name)) |
|
78 { |
|
79 $name = str_replace('@.', '@', $name); |
|
80 } |
|
81 if(!$wildcard) { |
82 if(!$wildcard) { |
82 if(!is_valid_hostname($name)) { |
83 if(!is_valid_hostname($test_name)) { |
83 error(ERR_DNS_HOSTNAME); |
84 error(ERR_DNS_HOSTNAME); |
84 return false; |
85 return false; |
85 } |
86 } |
86 } |
87 } |
87 |
88 |