Skip to content

Commit c1f39c0

Browse files
author
Thom
committed
Do not allow the value any for also_notify (#6584)
1 parent 3b43519 commit c1f39c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/validate_dns.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function validate_ip($field_name, $field_value, $validator) {
292292
if($validator['allowempty'] != 'y') $validator['allowempty'] = 'n';
293293
if($validator['allowempty'] == 'y' && $field_value == '') {
294294
//* Do nothing
295-
} elseif ($field_value == 'any') {
295+
} elseif ($field_value == 'any' && $field_name != "also_notify") {
296296
//* Do nothing
297297
} else {
298298
//* Check if its a IPv4 or IPv6 address/range

0 commit comments

Comments
 (0)