mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-15 09:07:00 +02:00
Many fixes in epp create, renew, transfer
This commit is contained in:
parent
dd6ec728cc
commit
67f9651a8a
4 changed files with 32 additions and 9 deletions
|
@ -228,6 +228,11 @@ function createTransaction($db, $clid, $clTRID, $clTRIDframe) {
|
|||
$cldate = date("Y-m-d H:i:s", $dateForClTransaction);
|
||||
$clmicrosecond = sprintf("%06d", ($dateForClTransaction - floor($dateForClTransaction)) * 1000000);
|
||||
|
||||
if (empty($clTRID)) {
|
||||
// If $clTRID is empty, generate a random string prefixed with "client-not-provided-"
|
||||
$clTRID = 'client-not-provided-' . bin2hex(random_bytes(8)); // Generates a 16 character hexadecimal string
|
||||
}
|
||||
|
||||
// Execute the statement
|
||||
if (!$stmt->execute([
|
||||
$clid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue