summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-06-26 15:01:20 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-06-26 15:01:20 +0000
commitdf6986ad68293ef67ff84063dbc6865aaab5e43e (patch)
treeb546647b09c3aa94e73b6bf1bc6026501e6cbd96 /usr
parent3bbee5ed6241a9e80b1d94154f305cbba0b639a5 (diff)
downloadpfsense-df6986ad68293ef67ff84063dbc6865aaab5e43e.zip
pfsense-df6986ad68293ef67ff84063dbc6865aaab5e43e.tar.gz
MFC 12516
Allow alphanumeric and - and _ in queue names only per: http://forum.pfsense.org/index.php?topic=1351.0
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_shaper_queues_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_shaper_queues_edit.php b/usr/local/www/firewall_shaper_queues_edit.php
index 4405ba9..dfe9cb0 100755
--- a/usr/local/www/firewall_shaper_queues_edit.php
+++ b/usr/local/www/firewall_shaper_queues_edit.php
@@ -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':
OpenPOWER on IntegriCloud