summaryrefslogtreecommitdiffstats
path: root/usr/local/pkg
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-05-09 13:48:38 -0400
committerjim-p <jimp@pfsense.org>2014-05-09 13:48:38 -0400
commitcf4e473b3d7f6f77c531f5498d78aff992c62cbd (patch)
treefaefb379fe68b6193ce4c8a1e048564335077fa1 /usr/local/pkg
parent941823677d476580cc4eefc5c58f1049df224950 (diff)
downloadpfsense-cf4e473b3d7f6f77c531f5498d78aff992c62cbd.zip
pfsense-cf4e473b3d7f6f77c531f5498d78aff992c62cbd.tar.gz
Fix call-time pass-by-reference in UPnP
Diffstat (limited to 'usr/local/pkg')
-rw-r--r--usr/local/pkg/miniupnpd.inc4
-rw-r--r--usr/local/pkg/miniupnpd.xml4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/pkg/miniupnpd.inc b/usr/local/pkg/miniupnpd.inc
index 7f37d72..e50a18d 100644
--- a/usr/local/pkg/miniupnpd.inc
+++ b/usr/local/pkg/miniupnpd.inc
@@ -71,12 +71,12 @@
return true;
}
- function before_form_miniupnpd($pkg) {
+ function before_form_miniupnpd(&$pkg) {
global $config;
}
- function validate_form_miniupnpd($post, $input_errors) {
+ function validate_form_miniupnpd($post, &$input_errors) {
if($post['enable'] && (!$post['enable_upnp'] && !$post['enable_natpmp']))
$input_errors[] = 'At least one of \'UPnP\' or \'NAT-PMP\' must be allowed';
if($post['iface_array'])
diff --git a/usr/local/pkg/miniupnpd.xml b/usr/local/pkg/miniupnpd.xml
index 6fc054f..9aa0239 100644
--- a/usr/local/pkg/miniupnpd.xml
+++ b/usr/local/pkg/miniupnpd.xml
@@ -146,10 +146,10 @@
</field>
</fields>
<custom_php_command_before_form>
- before_form_miniupnpd(&amp;$pkg);
+ before_form_miniupnpd($pkg);
</custom_php_command_before_form>
<custom_php_validation_command>
- validate_form_miniupnpd($_POST, &amp;$input_errors);
+ validate_form_miniupnpd($_POST, $input_errors);
</custom_php_validation_command>
<custom_php_resync_config_command>
sync_package_miniupnpd();
OpenPOWER on IntegriCloud