summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-04 00:17:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-04 00:17:27 +0000
commitf320386cd9739ec0d52916e5b76c04803d286b42 (patch)
tree01288eec6aa3e183d909d891dcf577500aca648a /usr/local
parent21eff66f3199bb0c50c9ea5a9a473043dd4991a1 (diff)
downloadpfsense-f320386cd9739ec0d52916e5b76c04803d286b42.zip
pfsense-f320386cd9739ec0d52916e5b76c04803d286b42.tar.gz
Tell user which characters are bad
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_nat_edit.php2
-rwxr-xr-xusr/local/www/firewall_rules_edit.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index 6b5ab58..8ccbd6a 100755
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -84,7 +84,7 @@ foreach ($_POST as $key => $value) {
$temp = $value;
$newpost = htmlentities($temp);
if($newpost <> $temp)
- $input_errors[] = "Invalid characters detected. Please remove invalid characters and save again.";
+ $input_errors[] = "Invalid characters detected ($temp). Please remove invalid characters and save again.";
}
if ($_POST) {
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index b2616d0..c3e3743 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -196,7 +196,7 @@ if ($_POST) {
$temp = $value;
$newpost = htmlentities($temp);
if($newpost <> $temp)
- $input_errors[] = "Invalid characters detected. Please remove invalid characters and save again.";
+ $input_errors[] = "Invalid characters detected ($temp). Please remove invalid characters and save again.";
}
/* input validation */
OpenPOWER on IntegriCloud