Revision b6843da7
Added by Doktor Notor almost 9 years ago
src/usr/local/www/services_dhcp.php | ||
---|---|---|
362 | 362 |
if (($_POST['domain'] && !is_domain($_POST['domain']))) { |
363 | 363 |
$input_errors[] = gettext("A valid domain name must be specified for the DNS domain."); |
364 | 364 |
} |
365 |
f ($_POST['tftp'] && !is_ipaddrv4($_POST['tftp']) && !is_domain($_POST['tftp']) && !filter_var($_POST['tftp'], FILTER_VALIDATE_URL)) { |
|
365 |
if ($_POST['tftp'] && !is_ipaddrv4($_POST['tftp']) && !is_domain($_POST['tftp']) && !filter_var($_POST['tftp'], FILTER_VALIDATE_URL)) {
|
|
366 | 366 |
$input_errors[] = gettext("A valid IP address, hostname or URL must be specified for the TFTP server."); |
367 | 367 |
} |
368 | 368 |
if (($_POST['nextserver'] && !is_ipaddrv4($_POST['nextserver']))) { |
Also available in: Unified diff
Typo fix
(cherry picked from commit 4b79a9d443c4e16d6ffa304775aec79938d2988c)