mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
(legacy) small fix in firewall_nat_1to1_edit.php , firewall_nat_edit.php
This commit is contained in:
parent
d96b0755d2
commit
5571064980
@ -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 */
|
||||
|
||||
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user