summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-09-10 22:32:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-09-10 22:32:50 +0000
commit5157927fc5e3cbfbffeea8c58cd432720a722915 (patch)
tree30a392c78fe25f9683fbccbc8b4f349aa382869a /usr/local/www/firewall_rules_edit.php
parentaa8cdf5219fb66127c58d9f392de63984f971bd5 (diff)
downloadpfsense-5157927fc5e3cbfbffeea8c58cd432720a722915.zip
pfsense-5157927fc5e3cbfbffeea8c58cd432720a722915.tar.gz
Backout last change, we need to think about this some more.
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 709c6ad..01e4ff7 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -221,13 +221,14 @@ if ($_POST) {
if (isset($_POST['floating']) && $key == "interface")
continue;
$newpost = htmlentities($temp);
+ if($newpost <> $temp)
+ $input_errors[] = "Invalid characters detected ($temp). Please remove invalid characters and save again.";
}
/* input validation */
$reqdfields = explode(" ", "type proto src dst");
$reqdfieldsn = explode(",", "Type,Protocol,Source,Destination");
-
if($_POST['statetype'] == "modulate state" or $_POST['statetype'] == "synproxy state") {
if( $_POST['proto'] != "tcp" )
$input_errors[] = "{$_POST['statetype']} is only valid with protocol tcp.";
@@ -235,7 +236,6 @@ if ($_POST) {
$input_errors[] = "{$_POST['statetype']} is only valid if the gateway is set to 'default'.";
}
-
if (!(is_specialnet($_POST['srctype']) || ($_POST['srctype'] == "single"))) {
$reqdfields[] = "srcmask";
$reqdfieldsn[] = "Source bit count";
OpenPOWER on IntegriCloud