MFC 12516

Allow alphanumeric and - and _ in queue names only per:
http://forum.pfsense.org/index.php?topic=1351.0
This commit is contained in:
Scott Ullrich 2006-06-26 15:01:20 +00:00
parent 3bbee5ed62
commit df6986ad68

View File

@ -104,6 +104,8 @@ if ($_POST) {
|| ($_POST['priority'] < 1) || ($_POST['priority'] > 100))) {
$input_errors[] = "The priority must be an integer between 1 and 100.";
}
if (!preg_match("/^[a-zA-Z0-9_-]*$/", $_POST['name']))
$input_errors[] = gettext("Queue names must be alphanumeric and _ or - only.");
switch($config['shaper']['schedulertype']) {
case 'hfsc':