diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-09-12 11:29:21 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-09-12 11:29:21 -0300 |
commit | ea51e9f8bfc188f7233ee22e1cc7a58643c4dba5 (patch) | |
tree | 98138ef1b4830cf0c534970cde04def3c3eb7cb6 /usr/local/www/firewall_shaper.php | |
parent | 1e9b461124a435fe64c62d065d09b01e1ca368e8 (diff) | |
download | pfsense-ea51e9f8bfc188f7233ee22e1cc7a58643c4dba5.zip pfsense-ea51e9f8bfc188f7233ee22e1cc7a58643c4dba5.tar.gz |
Remove call-time pass by reference from traffic shaper files, it should fix #2565
Diffstat (limited to 'usr/local/www/firewall_shaper.php')
-rwxr-xr-x | usr/local/www/firewall_shaper.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php index fe181e9..53f4d64 100755 --- a/usr/local/www/firewall_shaper.php +++ b/usr/local/www/firewall_shaper.php @@ -225,11 +225,11 @@ if ($_GET) { } $altq->SetAvailableBandwidth($altq->GetBandwidth() * $factor); $altq->ReadConfig($_POST); - $altq->validate_input($_POST, &$input_errors); + $altq->validate_input($_POST, $input_errors); if (!$input_errors) { unset($tmppath); $tmppath[] = $altq->GetInterface(); - $altq->SetLink(&$tmppath); + $altq->SetLink($tmppath); $altq->wconfig(); if (write_config()) mark_subsystem_dirty('shaper'); @@ -244,7 +244,7 @@ if ($_GET) { if ($qtmp) { $tmppath =& $qtmp->GetLink(); array_push($tmppath, $qname); - $tmp =& $qtmp->add_queue($interface, $_POST, $tmppath, &$input_errors); + $tmp =& $qtmp->add_queue($interface, $_POST, $tmppath, $input_errors); if (!$input_errors) { array_pop($tmppath); $tmp->wconfig(); @@ -298,7 +298,7 @@ if ($_GET) { } } else if ($queue) { - $queue->validate_input($_POST, &$input_errors); + $queue->validate_input($_POST, $input_errors); if (!$input_errors) { $queue->update_altq_queue_data($_POST); $queue->wconfig(); |