mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-22 18:45:59 +02:00
More RST updates
This commit is contained in:
parent
af95c2543c
commit
8633a580b4
1 changed files with 14 additions and 0 deletions
|
@ -947,6 +947,13 @@ function processHostUpdate($conn, $db, $xml, $clid, $database_type, $trans) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($hostRem)) {
|
if (isset($hostRem)) {
|
||||||
|
$rem_name = $xml->xpath('//host:name[1]')[0];
|
||||||
|
|
||||||
|
if (!validateHostName($rem_name)) {
|
||||||
|
sendEppError($conn, $db, 2005, 'Invalid host:name', $clTRID, $trans);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$addr_list = $xml->xpath('//host:rem/host:addr');
|
$addr_list = $xml->xpath('//host:rem/host:addr');
|
||||||
$status_list = $xml->xpath('//host:rem/host:status/@s');
|
$status_list = $xml->xpath('//host:rem/host:status/@s');
|
||||||
|
|
||||||
|
@ -967,6 +974,13 @@ function processHostUpdate($conn, $db, $xml, $clid, $database_type, $trans) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($hostAdd)) {
|
if (isset($hostAdd)) {
|
||||||
|
$add_name = $xml->xpath('//host:name[1]')[0];
|
||||||
|
|
||||||
|
if (!validateHostName($add_name)) {
|
||||||
|
sendEppError($conn, $db, 2005, 'Invalid host:name', $clTRID, $trans);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$addr_list = $xml->xpath('//host:add/host:addr');
|
$addr_list = $xml->xpath('//host:add/host:addr');
|
||||||
$status_list = $xml->xpath('//host:add/host:status/@s');
|
$status_list = $xml->xpath('//host:add/host:status/@s');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue