mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
some gui fixes for https://github.com/opnsense/core/issues/130
This commit is contained in:
parent
4b9ea9c764
commit
f89ab7ffc3
@ -42,7 +42,6 @@ function &get_reference_to_me_in_config(&$mypath)
|
||||
foreach ($mypath as $indeks) {
|
||||
$ptr =& $ptr['queue'][$indeks];
|
||||
}
|
||||
|
||||
return $ptr;
|
||||
}
|
||||
|
||||
@ -4307,9 +4306,6 @@ function read_altq_config() {
|
||||
|
||||
$altq_list_queues = array();
|
||||
|
||||
if (!is_array($config['shaper']['queue']))
|
||||
return;
|
||||
|
||||
foreach ($a_int as $key => $conf) {
|
||||
$int = $conf['interface'];
|
||||
$root =& new altq_root_queue();
|
||||
|
||||
@ -45,7 +45,7 @@ function listtags()
|
||||
'npt', 'ntpserver',
|
||||
'onetoone', 'openvpn-server', 'openvpn-client', 'openvpn-csc', 'option',
|
||||
'package', 'passthrumac', 'phase1', 'phase2', 'ppp', 'pppoe', 'priv', 'proxyarpnet', 'pool', 'pages', 'pipe',
|
||||
'qinqentry', 'queue',
|
||||
'qinqentry',
|
||||
'radnsserver', 'roll', 'route', 'row', 'rrddatafile', 'rule',
|
||||
'schedule', 'service', 'servernat', 'servers', 'serversdisabled', 'staticmap', 'subqueue',
|
||||
'tab', 'timerange', 'tunnel',
|
||||
|
||||
@ -58,8 +58,11 @@ if ($_GET) {
|
||||
$action = htmlspecialchars($_GET['action']);
|
||||
}
|
||||
if ($_POST) {
|
||||
if ($_POST['name'])
|
||||
if (isset($_POST['name']) && trim($_POST['name']) != '') {
|
||||
$qname = htmlspecialchars(trim($_POST['name']));
|
||||
} else {
|
||||
$qname = htmlspecialchars(trim($_POST['newname']));
|
||||
}
|
||||
if ($_POST['interface'])
|
||||
$interface = htmlspecialchars(trim($_POST['interface']));
|
||||
if ($_POST['parentqueue'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user