(legacy) small fix in firewall_nat_1to1_edit.php , firewall_nat_edit.php

This commit is contained in:
Ad Schellevis 2015-08-20 14:13:59 +00:00
parent d96b0755d2
commit 5571064980
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// validate input
foreach ($pconfig as $key => $value) {
if($value <> htmlentities($value))
$input_errors[] = sprintf(gettext("Invalid characters detected (%s). Please remove invalid characters and save again."),$temp);
$input_errors[] = sprintf(gettext("Invalid characters detected (%s). Please remove invalid characters and save again."),htmlentities($value));
}
/* input validation */

View File

@ -176,7 +176,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
/* Validate input data */
foreach ($pconfig as $key => $value) {
if(htmlentities($value) <> $value) {
$input_errors[] = sprintf(gettext("Invalid characters detected %s. Please remove invalid characters and save again."), $value);
$input_errors[] = sprintf(gettext("Invalid characters detected %s. Please remove invalid characters and save again."), htmlentities($value));
}
}