Project

General

Profile

Bug #2827 ยป interfaces.php.patch

Dwayne Voelker, 02/19/2013 03:55 PM

View differences:

interfaces.php.tmp 2013-02-17 12:03:00.000000000 -0500
432 432
	/* input validation */
433 433
	if (isset($config['dhcpd']) && isset($config['dhcpd'][$if]['enable']) && (! preg_match("/^staticv4/", $_POST['type'])))
434 434
		$input_errors[] = gettext("The DHCP Server is active on this interface and it can be used only with a static IP configuration. Please disable the DHCP Server service on this interface first, then change the interface configuration.");
435
	if (isset($config['dhcpd6']) && isset($config['dhcpd6'][$if]['enable']) && (! preg_match("/^staticv6/", $_POST['type6'])))
435
	if (isset($config['dhcpdv6']) && isset($config['dhcpdv6'][$if]['enable']) && (! preg_match("/^staticv6/", $_POST['type6'])))
436 436
		$input_errors[] = gettext("The DHCP6 Server is active on this interface and it can be used only with a static IPv6 configuration. Please disable the DHCPv6 Server service on this interface first, then change the interface configuration.");
437 437

  
438 438
	switch(strtolower($_POST['type'])) {
    (1-1/1)