mirror of
https://github.com/webmin/webmin.git
synced 2025-07-29 11:50:54 +00:00
Sanity check the SOA serial
https://github.com/virtualmin/virtualmin-gpl/issues/1004
This commit is contained in:
@ -141,6 +141,7 @@ master_emip=Invalid master IP '$1'
|
||||
master_esetup=BIND module is not set up
|
||||
master_eview=View $1 was not found
|
||||
master_eserial=Serial number must be a string of digits
|
||||
master_eserial2=Serial number must be less than 2^31
|
||||
master_apply=Apply Changes
|
||||
master_applymsg2=Click this button to apply changes for this zone only. This will only work if changes have been applied for the entire server at least once since the zone was created.
|
||||
master_defttl=Default time-to-live for records
|
||||
|
@ -56,6 +56,7 @@ if ($config{'updserial_on'}) {
|
||||
}
|
||||
else {
|
||||
$in{'serial'} =~ /^\d+$/ || &error($text{'master_eserial'});
|
||||
$in{'serial'} < 2**31 || &error($text{'master_eserial2'});
|
||||
$serial = $in{'serial'};
|
||||
}
|
||||
my $vals = "$in{'master'} $in{'email'} (\n".
|
||||
|
Reference in New Issue
Block a user