Fix matching on zonename, we were missing the .

This commit is contained in:
Mark Schouten 2016-11-18 17:01:48 +01:00
parent ae00aa8ed9
commit 6737aa9b83

View file

@ -388,7 +388,7 @@ case "createrecord":
if (!string_ends_with($name, $zone->name)) { if (!string_ends_with($name, $zone->name)) {
jtable_respond(null, 'error', "Name $name not in zone ".$zone->name); jtable_respond(null, 'error', "Name $name not in zone ".$zone->name);
} }
} else if (!string_ends_with($name, $zone->name)) { } else if (!string_ends_with($name.'.', $zone->name)) {
$name = $name . '.' . $zone->name; $name = $name . '.' . $zone->name;
} }