mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
If the name starts with a ., strip it
This commit is contained in:
parent
32e49eae99
commit
9854630f68
1 changed files with 1 additions and 0 deletions
|
@ -237,6 +237,7 @@ if ($action == "list" or $action== "listslaves") {
|
|||
} elseif ($action == "createrecord" or $action == "editrecord") {
|
||||
$name = (!preg_match("/\.".$_POST['domain']."\.?$/", $_POST['name'])) ? $_POST['name'].'.'.$_POST['domain'] : $_POST['name'];
|
||||
$name = preg_replace("/\.$/", "", $name);
|
||||
$name = preg_replace("/^\./", "", $name);
|
||||
$records = array();
|
||||
if ($action == "createrecord") {
|
||||
$records = getrecords_by_name_type($_GET['zoneurl'], $name, $_POST['type']);
|
||||
|
|
Loading…
Add table
Reference in a new issue