summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_out_edit.php
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-01-05 00:05:01 -0800
committerNOYB <Al_Stu@Frontier.com>2016-01-05 00:05:01 -0800
commit11f674d0e74ce004b6e551839a9fe181d6cc6c98 (patch)
treec12c33fb93e920ae5c6e87919adb84ab37672f03 /src/usr/local/www/firewall_nat_out_edit.php
parentb1895639099d0c80c89c717f08fa7d8b13313bcb (diff)
downloadpfsense-11f674d0e74ce004b6e551839a9fe181d6cc6c98.zip
pfsense-11f674d0e74ce004b6e551839a9fe181d6cc6c98.tar.gz
HTML Compliance - Firewall / NAT / Outbound / Edit
Bad value [0-9, a-z, A-Z and . for attribute pattern on element input: Unterminated character class <input class="form-control" name="source" id="source" type="text" pattern="[0-9, a-z, A-Z and ."> <input class="form-control" name="destination" id="destination" type="text" value="" pattern="[0-9, a-z, A-Z and ."> Element ul not allowed as child of element span in this context. (Suppressing further errors from this subtree.) Contexts in which element ul may be used: Where flow content is expected. Content model for element span: Phrasing content. Element br not allowed as child of element ul in this context. (Suppressing further errors from this subtree.) Contexts in which element br may be used: Where phrasing content is expected. Content model for element ul: Zero or more li and script-supporting elements.
Diffstat (limited to 'src/usr/local/www/firewall_nat_out_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_out_edit.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/usr/local/www/firewall_nat_out_edit.php b/src/usr/local/www/firewall_nat_out_edit.php
index 0836d4e..d21b769 100644
--- a/src/usr/local/www/firewall_nat_out_edit.php
+++ b/src/usr/local/www/firewall_nat_out_edit.php
@@ -517,7 +517,7 @@ $group->add(new Form_IpAddress(
'source',
null,
$pconfig['source']
-))->addMask('source_subnet', $pconfig['source_subnet'])->setHelp('Source network for the outbound NAT mapping.')->setPattern('[0-9, a-z, A-Z and .');
+))->addMask('source_subnet', $pconfig['source_subnet'])->setHelp('Source network for the outbound NAT mapping.')->setPattern('[a-zA-Z0-9\_\.\:]+');
$group->add(new Form_Input(
'sourceport',
@@ -541,7 +541,7 @@ $group->add(new Form_IpAddress(
'destination',
null,
$pconfig['destination'] == "any" ? "":$pconfig['destination']
-))->addMask('destination_subnet', $pconfig['destination_subnet'])->setHelp('Destination network for the outbound NAT mapping.')->setPattern('[0-9, a-z, A-Z and .');
+))->addMask('destination_subnet', $pconfig['destination_subnet'])->setHelp('Destination network for the outbound NAT mapping.')->setPattern('[[a-zA-Z0-9\_\.\:]+');
$group->add(new Form_Input(
'dstport',
@@ -596,13 +596,13 @@ $section->addInput(new Form_Select(
'bitmask' => 'Bit mask'
)
))->setHelp('Only Round Robin types work with Host Aliases. Any type can be used with a Subnet.' . '<br />' .
- '<ul>' .
- '<li>' . 'Round Robin: Loops through the translation addresses.' . '</li>' . '<br />' .
- '<li>' . 'Random: Selects an address from the translation address pool at random.' . '</li>' . '<br />' .
- '<li>' . 'Source Hash: Uses a hash of the source address to determine the translation address, ensuring that the redirection address is always the same for a given source.' . '</li>' . '<br />' .
- '<li>' . 'Bitmask: Applies the subnet mask and keeps the last portion identical; 10.0.1.50 -&gt; x.x.x.50.' . '</li>' . '<br />' .
+ '</span><ul class="help-block">' .
+ '<li>' . 'Round Robin: Loops through the translation addresses.' . '</li>' .
+ '<li>' . 'Random: Selects an address from the translation address pool at random.' . '</li>' .
+ '<li>' . 'Source Hash: Uses a hash of the source address to determine the translation address, ensuring that the redirection address is always the same for a given source.' . '</li>' .
+ '<li>' . 'Bitmask: Applies the subnet mask and keeps the last portion identical; 10.0.1.50 -&gt; x.x.x.50.' . '</li>' .
'<li>' . 'Sticky Address: The Sticky Address option can be used with the Random and Round Robin pool types to ensure that a particular source address is always mapped to the same translation address.' . '</li>' .
- '</ul>');
+ '</ul><span class="help-block">');
$group = new Form_Group('Port');
$group->addClass('natportgrp');
OpenPOWER on IntegriCloud