Projet

Général

Profil

« Précédent | Suivant » 

Révision 71f45fed

Ajouté par Chris Buechler il y a plus de 9 ans

Don't allow interface descriptions that are strictly numbers as that
generates an invalid ruleset. Ticket #4005

Voir les différences:

usr/local/www/interfaces.php
502 502
			break;
503 503
		}
504 504
	}
505
	if(is_numeric($_POST['descr'])) {
506
		$input_errors[] = gettext("The interface description cannot contain only numbers.");
507
	}
505 508
	/* input validation */
506 509
	if (isset($config['dhcpd']) && isset($config['dhcpd'][$if]['enable']) && (! preg_match("/^staticv4/", $_POST['type'])))
507 510
		$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.");

Formats disponibles : Unified diff