Project

General

Profile

« Previous | Next » 

Revision 7b77fa79

Added by Scott Ullrich about 19 years ago

Return correct field for input validation for nat ip

View differences:

usr/local/www/firewall_nat_edit.php
85 85
	/* input validation */
86 86
	if(strtoupper($_POST['proto']) == "TCP" or strtoupper($_POST['proto']) == "UDP" or strtoupper($_POST['proto']) == "TCP/UDP") {
87 87
		$reqdfields = explode(" ", "interface proto beginport localip localbeginport");
88
		$reqdfieldsn = explode(",", "Interface,Protocol,Ext. start port,NAT IP,Local port");
88
		$reqdfieldsn = explode(",", "Interface,Protocol,External begin port,External End port,NAT IP,Local port");
89 89
	} else {
90 90
		$reqdfields = explode(" ", "interface proto localip");
91 91
		$reqdfieldsn = explode(",", "Interface,Protocol,NAT IP");		

Also available in: Unified diff