summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-04 08:01:59 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-04 08:01:59 -0500
commit951a7169ab7df8a9b5a41fa162607cd972457ee4 (patch)
tree3f9659ddeff0e9aff18190aa3f2c6b9be57b6a10
parent24fa1d892ca5fae3346bfaa65d72fcc5c12f987e (diff)
parentfc589cceb8df08d8d4108427473924cfca05569a (diff)
downloadpfsense-951a7169ab7df8a9b5a41fa162607cd972457ee4.zip
pfsense-951a7169ab7df8a9b5a41fa162607cd972457ee4.tar.gz
Merge pull request #2351 from NOYB/HTML_Compliance_-_Firewall_/_NAT/_1_1_/_Edit
-rw-r--r--src/usr/local/www/firewall_nat_1to1_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_nat_1to1_edit.php b/src/usr/local/www/firewall_nat_1to1_edit.php
index 20c7bb6..7e76b35 100644
--- a/src/usr/local/www/firewall_nat_1to1_edit.php
+++ b/src/usr/local/www/firewall_nat_1to1_edit.php
@@ -461,7 +461,7 @@ $group->add(new Form_IpAddress(
'src',
null,
is_specialnet($pconfig['src']) ? '': $pconfig['src']
-))->addMask('srcmask', $pconfig['srcmask'], 31)->setHelp('Address/mask')->setPattern('[0-9, a-z, A-Z and .');
+))->addMask('srcmask', $pconfig['srcmask'], 31)->setHelp('Address/mask')->setPattern('[a-zA-Z0-9\.\:\_]+');
$group->setHelp('Enter the internal (LAN) subnet for the 1:1 mapping. ' .
'The subnet size specified for the internal subnet will be applied to the external subnet.');
@@ -488,7 +488,7 @@ $group->add(new Form_IpAddress(
'dst',
null,
is_specialnet($pconfig['dst']) ? '': $pconfig['dst']
-))->addMask('dstmask', $pconfig['dstmask'], 31)->setHelp('Address/mask')->setPattern('[0-9, a-z, A-Z and .');
+))->addMask('dstmask', $pconfig['dstmask'], 31)->setHelp('Address/mask')->setPattern('[a-zA-Z0-9\.\:\_]+');
$group->setHelp('The 1:1 mapping will only be used for connections to or from the specified destination. Hint: this is usually "Any".');
OpenPOWER on IntegriCloud