If we get here, there is a value without dots... So add it

This commit is contained in:
Mark Schouten 2016-11-18 17:11:22 +01:00
parent 5c5f9f7abd
commit 93c88cc196

View file

@ -390,6 +390,8 @@ case "createrecord":
} }
} else if (!string_ends_with($name.'.', $zone->name)) { } else if (!string_ends_with($name.'.', $zone->name)) {
$name = $name . '.' . $zone->name; $name = $name . '.' . $zone->name;
} else {
$name = $name.'.';
} }
if (!_valid_label($name)) { if (!_valid_label($name)) {