mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
3bbee5ed62
commit
df6986ad68
@ -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':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user