mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-26 06:04:45 +02:00
Fixed #43
This commit is contained in:
parent
bd5ada89b9
commit
d5be4841f5
2 changed files with 23 additions and 1 deletions
|
@ -902,7 +902,7 @@ class EppWriter {
|
|||
$writer->endElement(); // End of 'resData'
|
||||
|
||||
// Begin the extension part if any of the extensions are present
|
||||
if (isset($resp['rgpstatus']) || isset($resp['secDNS']) || isset($resp['launch_phase'])) {
|
||||
if (isset($resp['rgpstatus']) || isset($resp['secDNS']) || isset($resp['launch_phase'] || isset($resp['allocation'])) {
|
||||
$writer->startElement('extension');
|
||||
|
||||
// Handle RGP status
|
||||
|
@ -978,6 +978,14 @@ class EppWriter {
|
|||
|
||||
$writer->endElement(); // End of 'launch:infData'
|
||||
}
|
||||
|
||||
// Handle Allocation Token
|
||||
if (isset($resp['allocation'])) {
|
||||
$writer->startElement('allocationToken:allocationToken');
|
||||
$writer->writeAttribute('xmlns:allocationToken', 'urn:ietf:params:xml:ns:allocationToken-1.0');
|
||||
$writer->text($resp['allocation']);
|
||||
$writer->endElement(); // End of 'allocationToken:allocationToken'
|
||||
}
|
||||
|
||||
$writer->endElement(); // End of 'extension'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue