diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-03 08:29:13 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-03 08:29:13 -0500 |
commit | 9109177f8315f31dda7724b26a98188696f71417 (patch) | |
tree | 167d0bae303e4ff231d48e7a1125689a8490f771 | |
parent | 09e989f9bc8013a8b29783f5fcbe29b63c8170a4 (diff) | |
parent | 1f0092d6539923f63310397b6e976b6245f58d95 (diff) | |
download | pfsense-9109177f8315f31dda7724b26a98188696f71417.zip pfsense-9109177f8315f31dda7724b26a98188696f71417.tar.gz |
Merge pull request #2347 from NOYB/HTML_Compliance_-_Firewall_/_NAT_/_Port_Forward_/_Edit
-rw-r--r-- | src/usr/local/www/firewall_nat_edit.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php index 13172a1..2018ac8 100644 --- a/src/usr/local/www/firewall_nat_edit.php +++ b/src/usr/local/www/firewall_nat_edit.php @@ -771,8 +771,8 @@ $group->add(new Form_Select( $group->add(new Form_Input( 'srcbeginport_cust', null, - 'text', - $pconfig['srcbeginport'], + 'number', + is_numeric($pconfig['srcbeginport']) ? $pconfig['srcbeginport'] : null, ['min' => '1', 'max' => '65536'] ))->setHelp('Custom'); @@ -786,8 +786,8 @@ $group->add(new Form_Select( $group->add(new Form_Input( 'srcendport_cust', null, - 'text', - $pconfig['srcendport'], + 'number', + is_numeric($pconfig['srcendport']) ? $pconfig['srcendport'] : null, ['min' => '1', 'max' => '65536'] ))->setHelp('Custom'); @@ -834,8 +834,8 @@ $group->add(new Form_Select( $group->add(new Form_Input( 'dstbeginport_cust', null, - 'text', - $pconfig['dstbeginport'], + 'number', + is_numeric($pconfig['dstbeginport']) ? $pconfig['dstbeginport'] : null, ['min' => '1', 'max' => '65536'] ))->setHelp('Custom'); @@ -849,8 +849,8 @@ $group->add(new Form_Select( $group->add(new Form_Input( 'dstendport_cust', null, - 'text', - $pconfig['dstendport'], + 'number', + is_numeric($pconfig['dstendport']) ? $pconfig['dstendport'] : null, ['min' => '1', 'max' => '65536'] ))->setHelp('Custom'); @@ -883,8 +883,8 @@ $group->setHelp('Specify the port on the machine with the IP address entered abo $group->add(new Form_Input( 'localbeginport_cust', null, - 'text', - $pconfig['localbeginport'], + 'number', + is_numeric($pconfig['localbeginport']) ? $pconfig['localbeginport'] : null, ['min' => '1', 'max' => '65536'] ))->setHelp('Custom'); |