diff options
author | jim-p <jimp@pfsense.org> | 2014-05-09 13:48:38 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-05-09 13:48:38 -0400 |
commit | cf4e473b3d7f6f77c531f5498d78aff992c62cbd (patch) | |
tree | faefb379fe68b6193ce4c8a1e048564335077fa1 | |
parent | 941823677d476580cc4eefc5c58f1049df224950 (diff) | |
download | pfsense-cf4e473b3d7f6f77c531f5498d78aff992c62cbd.zip pfsense-cf4e473b3d7f6f77c531f5498d78aff992c62cbd.tar.gz |
Fix call-time pass-by-reference in UPnP
-rw-r--r-- | usr/local/pkg/miniupnpd.inc | 4 | ||||
-rw-r--r-- | usr/local/pkg/miniupnpd.xml | 4 |
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(&$pkg); + before_form_miniupnpd($pkg); </custom_php_command_before_form> <custom_php_validation_command> - validate_form_miniupnpd($_POST, &$input_errors); + validate_form_miniupnpd($_POST, $input_errors); </custom_php_validation_command> <custom_php_resync_config_command> sync_package_miniupnpd(); |