Add filtering to protect against XSS attacks
parent
712593096a
commit
cd6be42526
|
@ -181,9 +181,9 @@ class Servers extends Core {
|
||||||
// check for add/edit mode
|
// check for add/edit mode
|
||||||
if (isset($_POST['label']) && isset($_POST['ip']) && isset($_POST['port'])) {
|
if (isset($_POST['label']) && isset($_POST['ip']) && isset($_POST['port'])) {
|
||||||
$clean = array(
|
$clean = array(
|
||||||
'label' => $_POST['label'],
|
'label' => strip_tags($_POST['label']),
|
||||||
'ip' => $_POST['ip'],
|
'ip' => strip_tags($_POST['ip']),
|
||||||
'port' => $_POST['port'],
|
'port' => strip_tags($_POST['port']),
|
||||||
'type' => $_POST['type'],
|
'type' => $_POST['type'],
|
||||||
'active' => $_POST['active'],
|
'active' => $_POST['active'],
|
||||||
'email' => $_POST['email'],
|
'email' => $_POST['email'],
|
||||||
|
|
Loading…
Reference in New Issue