mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
TRAILING DOTSS!!!11eleven!!11!&$W*&@*@!@#&
This commit is contained in:
parent
32f0456f21
commit
83e8a0eda6
1 changed files with 1 additions and 2 deletions
|
@ -319,7 +319,7 @@ case "create":
|
||||||
$api->savezone($zone->export());
|
$api->savezone($zone->export());
|
||||||
|
|
||||||
foreach ($template['records'] as $record) {
|
foreach ($template['records'] as $record) {
|
||||||
$zone->addRecord($record['name'], $record['type'], $record['content']);
|
$zone->addRecord($record['name'].$zonename, $record['type'], $record['content']);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -369,7 +369,6 @@ case "createrecord":
|
||||||
$name = $zone->name;
|
$name = $zone->name;
|
||||||
} elseif (string_ends_with($name, '.')) {
|
} elseif (string_ends_with($name, '.')) {
|
||||||
# "absolute" name, shouldn't append zone[name] - but check.
|
# "absolute" name, shouldn't append zone[name] - but check.
|
||||||
$name = substr($name, 0, -1);
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue