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