Skip to content

Commit 91bc8ea

Browse files
author
redray
committed
another dns serial fix
1 parent 0ba7fb6 commit 91bc8ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interface/lib/classes/validate_dns.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ function increase_serial($serial){
272272
$current_date = date("Ymd");
273273
if($serial_date >= $current_date){
274274
$count += 1;
275+
if ($count > 99) {
276+
$serial_date += 1;
277+
$count = 0;
278+
}
275279
$count = str_pad($count, 2, "0", STR_PAD_LEFT);
276280
$new_serial = $serial_date.$count;
277281
} else {

0 commit comments

Comments
 (0)