summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_1to1_edit.php
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-01-04 00:09:06 -0800
committerNOYB <Al_Stu@Frontier.com>2016-01-04 00:09:06 -0800
commitfc589cceb8df08d8d4108427473924cfca05569a (patch)
tree60fa70654ddef3dd34083df4c7ad766a9f60fc3d /src/usr/local/www/firewall_nat_1to1_edit.php
parent14c49a5f221be41e0c5e3bd668679a2b18a62ede (diff)
downloadpfsense-fc589cceb8df08d8d4108427473924cfca05569a.zip
pfsense-fc589cceb8df08d8d4108427473924cfca05569a.tar.gz
HTML Compliance - Firewall / NAT/ 1:1 / Edit
Bad value [0-9, a-z, A-Z and . for attribute pattern on element input: Unterminated character class <input class="form-control" name="src" id="src" type="text" pattern="[0-9, a-z, A-Z and ."> <input class="form-control" name="dst" id="dst" type="text" pattern="[0-9, a-z, A-Z and .">
Diffstat (limited to 'src/usr/local/www/firewall_nat_1to1_edit.php')
-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