mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
No need to check for HTML in NAT 1to1 or NAT Out descr
This commit is contained in:
parent
58e8a4fd52
commit
f95d6bdc19
@ -104,6 +104,10 @@ if ($_POST['save']) {
|
||||
* cannot think he is slick and perform a XSS attack on the unwilling
|
||||
*/
|
||||
foreach ($_POST as $key => $value) {
|
||||
if ($key == 'descr') {
|
||||
continue;
|
||||
}
|
||||
|
||||
$temp = str_replace(">", "", $value);
|
||||
$newpost = htmlentities($temp);
|
||||
|
||||
|
||||
@ -146,6 +146,10 @@ if ($_POST['save']) {
|
||||
* cannot think he is slick and perform a XSS attack on the unwilling
|
||||
*/
|
||||
foreach ($_POST as $key => $value) {
|
||||
if ($key == 'descr') {
|
||||
continue;
|
||||
}
|
||||
|
||||
$temp = str_replace(">", "", $value);
|
||||
$newpost = htmlentities($temp);
|
||||
if ($newpost <> $temp) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user