Project

General

Profile

« Previous | Next » 

Revision 6ab59b35

Added by Ermal LUÇI almost 13 years ago

Add check for local port being set before testing. Fixes #2606

View differences:

usr/local/www/firewall_nat_edit.php
229 229
	if ($_POST['dstendport'] && !is_portoralias($_POST['dstendport']))
230 230
		$input_errors[] = sprintf(gettext("%s is not a valid end destination port. It must be a port alias or integer between 1 and 65535."), $_POST['dstendport']);
231 231

  
232
	if (!isset($_POST['nordr']) && !is_portoralias($_POST['localbeginport'])) {
232
	if (!isset($_POST['nordr']) && $_POST['localbeginport'] && !is_portoralias($_POST['localbeginport'])) {
233 233
		$input_errors[] = sprintf(gettext("A valid local port must be specified. It must be a port alias or integer between 1 and 65535."), $_POST['localbeginport']);
234 234
	}
235 235

  

Also available in: Unified diff