Projet

Général

Profil

« Précédent | Suivant » 

Révision cf4e473b

Ajouté par jim-p il y a presque 10 ans

Fix call-time pass-by-reference in UPnP

Voir les différences:

usr/local/pkg/miniupnpd.inc
71 71
		return true;	
72 72
	}
73 73

  
74
	function before_form_miniupnpd($pkg) {
74
	function before_form_miniupnpd(&$pkg) {
75 75
		global $config;
76 76

  
77 77
	}
78 78

  
79
	function validate_form_miniupnpd($post, $input_errors) {
79
	function validate_form_miniupnpd($post, &$input_errors) {
80 80
		if($post['enable'] && (!$post['enable_upnp'] && !$post['enable_natpmp']))
81 81
			$input_errors[] = 'At least one of \'UPnP\' or \'NAT-PMP\' must be allowed';
82 82
		if($post['iface_array'])

Formats disponibles : Unified diff